1#ifndef AUBO_SCOPE_DATA_MODEL_H
2#define AUBO_SCOPE_DATA_MODEL_H
114 void set(
const std::string &key,
bool value);
133 bool get(
const std::string &key,
bool default_value)
const;
159 void set(
const std::string &key,
int value);
178 int get(
const std::string &key,
int default_value)
const;
198 void set(
const std::string &key,
long value);
199 void set(
const std::string &key, uint64_t value);
214 long get(
const std::string &key,
long default_value)
const;
215 uint64_t
get(
const std::string &key, uint64_t default_value)
const;
235 void set(
const std::string &key,
float value);
250 float get(
const std::string &key,
float default_value)
const;
270 void set(
const std::string &key,
double value);
285 double get(
const std::string &key,
double default_value)
const;
305 void set(
const std::string &key,
const std::string &value);
320 std::string
get(
const std::string &key,
321 const std::string &default_value)
const;
340 void set(
const std::string &key, VariablePtr value);
341 void set(
const std::string &key, ExpressionPtr value);
342 void set(
const std::string &key, PayloadPtr value);
343 void set(
const std::string &key, IoPtr value);
344 void set(
const std::string &key, WaypointPtr value);
360 VariablePtr
get(
const std::string &key, VariablePtr default_value)
const;
361 ExpressionPtr
get(
const std::string &key,
362 ExpressionPtr default_value)
const;
363 PayloadPtr
get(
const std::string &key, PayloadPtr default_value)
const;
364 IoPtr
get(
const std::string &key, IoPtr default_value)
const;
365 WaypointPtr
get(
const std::string &key, WaypointPtr default_value)
const;
384 void set(
const std::string &key,
const std::vector<bool> &value);
399 std::vector<bool>
get(
const std::string &key,
400 const std::vector<bool> &default_value)
const;
420 void set(
const std::string &key,
const std::vector<int> &value);
435 std::vector<int>
get(
const std::string &key,
436 const std::vector<int> &default_value)
const;
456 void set(
const std::string &key,
const std::vector<long> &value);
457 void set(
const std::string &key,
const std::vector<uint64_t> &value);
472 std::vector<long>
get(
const std::string &key,
473 const std::vector<long> &default_value)
const;
474 std::vector<uint64_t>
get(
const std::string &key,
475 const std::vector<uint64_t> &default_value)
const;
495 void set(
const std::string &key,
const std::vector<float> &value);
510 std::vector<float>
get(
const std::string &key,
511 const std::vector<float> &default_value)
const;
531 void set(
const std::string &key,
const std::vector<double> &value);
546 std::vector<double>
get(
const std::string &key,
547 const std::vector<double> &default_value)
const;
567 void set(
const std::string &key,
const std::vector<std::string> &value);
583 std::vector<std::string>
get(
584 const std::string &key,
585 const std::vector<std::string> &default_value)
const;
605 void set(
const std::string &key, TCPPtr value);
620 TCPPtr
get(
const std::string &key, TCPPtr default_value)
const;
640 void set(
const std::string &key, FeaturePtr value);
655 FeaturePtr
get(
const std::string &key, FeaturePtr default_value)
const;
684 bool isSet(
const std::string &key)
const;
#define ARCS_CLASS_FORWARD(C)
Macro that forward declares a class and defines the respective smartpointers through ARCS_DECLARE_PTR...
\chinese 数据模型 此接口用于存储和管理表示当前配置的数据,例如 ProgramNodeContribution 或 InstallationNodeContribution 的配置。提供了在字...
std::vector< std::string > get(const std::string &key, const std::vector< std::string > &default_value) const
\chinese 获取赋给指定键的std::string[]数组。 \endchinese \english Get the std::string[] as value assigned to the...
bool isSet(const std::string &key) const
\chinese 检查数据模型中是否存在指定键。
void set(const std::string &key, FeaturePtr value)
\chinese 将Feature值赋给指定键。 \endchinese \english Assign a Feature value to the specified key.
void set(const std::string &key, const std::string &value)
\chinese 将std::string值赋给指定键。 \endchinese \english Assign a std::string value to the specified key.
void set(const std::string &key, WaypointPtr value)
void set(const std::string &key, ExpressionPtr value)
WaypointPtr get(const std::string &key, WaypointPtr default_value) const
void set(const std::string &key, IoPtr value)
TCPPtr get(const std::string &key, TCPPtr default_value) const
\chinese 获取赋给指定键的TCP值。 \endchinese \english Get the TCP value assigned to the specified key.
int get(const std::string &key, int default_value) const
\chinese 获取赋给指定键的int值。
ExpressionPtr get(const std::string &key, ExpressionPtr default_value) const
bool remove(const std::string &key)
\chinese 从数据模型中移除一个键值对。
void set(const std::string &key, const std::vector< double > &value)
\chinese 将double[]数组赋给指定键。 \endchinese \english Assign a double[] as value to the specified key.
IoPtr get(const std::string &key, IoPtr default_value) const
void set(const std::string &key, const std::vector< long > &value)
\chinese 将long[]数组赋给指定键。 \endchinese \english Assign a long[] as value to the specified key.
std::string get(const std::string &key, const std::string &default_value) const
\chinese 获取赋给指定键的std::string值。 \endchinese \english Get the std::string value assigned to the specifi...
std::vector< bool > get(const std::string &key, const std::vector< bool > &default_value) const
\chinese 获取赋给指定键的bool[]数组。 \endchinese \english Get the bool[] as value assigned to the specified key...
std::vector< uint64_t > get(const std::string &key, const std::vector< uint64_t > &default_value) const
std::vector< long > get(const std::string &key, const std::vector< long > &default_value) const
\chinese 获取赋给指定键的long[]数组。 \endchinese \english Get the long[] as value assigned to the specified key...
void set(const std::string &key, uint64_t value)
float get(const std::string &key, float default_value) const
\chinese 获取赋给指定键的float值。 \endchinese \english Get the float value assigned to the specified key.
void set(const std::string &key, bool value)
\chinese 将bool值赋给指定键。
long get(const std::string &key, long default_value) const
\chinese 获取赋给指定键的long值。 \endchinese \english Get the long value assigned to the specified key.
void set(const std::string &key, double value)
\chinese 将double值赋给指定键。 \endchinese \english Assign a double value to the specified key.
void set(const std::string &key, const std::vector< std::string > &value)
\chinese 将std::string[]数组赋给指定键。 \endchinese \english Assign a std::string[] as value to the specified...
void set(const std::string &key, VariablePtr value)
\chinese 将Variable值赋给指定键。 \endchinese \english Assign a Variable value to the specified key.
void set(const std::string &key, const std::vector< uint64_t > &value)
void set(const std::string &key, const std::vector< float > &value)
\chinese 将float[]数组赋给指定键。 \endchinese \english Assign a float[] as value to the specified key.
void set(const std::string &key, const std::vector< bool > &value)
\chinese 将bool[]数组赋给指定键。 \endchinese \english Assign a bool[] as value to the specified key.
void set(const std::string &key, float value)
\chinese 将float值赋给指定键。 \endchinese \english Assign a float value to the specified key.
VariablePtr get(const std::string &key, VariablePtr default_value) const
\chinese 获取赋给指定键的Variable值。
std::vector< float > get(const std::string &key, const std::vector< float > &default_value) const
\chinese 获取赋给指定键的float[]数组。 \endchinese \english Get the float[] as value assigned to the specified k...
uint64_t get(const std::string &key, uint64_t default_value) const
PayloadPtr get(const std::string &key, PayloadPtr default_value) const
double get(const std::string &key, double default_value) const
\chinese 获取赋给指定键的double值。 \endchinese \english Get the double value assigned to the specified key.
std::vector< int > get(const std::string &key, const std::vector< int > &default_value) const
\chinese 获取赋给指定键的int[]数组。 \endchinese \english Get the int[] as value assigned to the specified key.
std::vector< double > get(const std::string &key, const std::vector< double > &default_value) const
\chinese 获取赋给指定键的double[]数组。 \endchinese \english Get the double[] as value assigned to the specified...
void set(const std::string &key, TCPPtr value)
\chinese 将TCP值赋给指定键。 \endchinese \english Assign a TCP value to the specified key.
bool get(const std::string &key, bool default_value) const
\chinese 获取赋给指定键的bool值。
void set(const std::string &key, PayloadPtr value)
void set(const std::string &key, int value)
\chinese 将int值赋给指定键。
void set(const std::string &key, const std::vector< int > &value)
\chinese 将int[]数组赋给指定键。 \endchinese \english Assign a int[] as value to the specified key.
FeaturePtr get(const std::string &key, FeaturePtr default_value) const
\chinese 获取赋给指定键的Feature值。 \endchinese \english Get the Feature value assigned to the specified key.
void set(const std::string &key, long value)
\chinese 将long值赋给指定键。 \endchinese \english Assign a long value to the specified key.
std::set< std::string > getKeys() const
\chinese 获取数据模型中所有键的集合。