1#ifndef AUBO_SCOPE_DATA_MODEL_H
2#define AUBO_SCOPE_DATA_MODEL_H
85 void set(
const std::string &key,
bool value);
95 bool get(
const std::string &key,
bool default_value)
const;
110 void set(
const std::string &key,
int value);
120 int get(
const std::string &key,
int default_value)
const;
135 void set(
const std::string &key,
long value);
136 void set(
const std::string &key, uint64_t value);
146 long get(
const std::string &key,
long default_value)
const;
147 uint64_t
get(
const std::string &key, uint64_t default_value)
const;
162 void set(
const std::string &key,
float value);
172 float get(
const std::string &key,
float default_value)
const;
187 void set(
const std::string &key,
double value);
197 double get(
const std::string &key,
double default_value)
const;
212 void set(
const std::string &key,
const std::string &value);
222 std::string
get(
const std::string &key,
223 const std::string &default_value)
const;
237 void set(
const std::string &key, VariablePtr value);
238 void set(
const std::string &key, ExpressionPtr value);
239 void set(
const std::string &key, PayloadPtr value);
240 void set(
const std::string &key, IoPtr value);
241 void set(
const std::string &key, WaypointPtr value);
251 VariablePtr
get(
const std::string &key, VariablePtr default_value)
const;
252 ExpressionPtr
get(
const std::string &key,
253 ExpressionPtr default_value)
const;
254 PayloadPtr
get(
const std::string &key, PayloadPtr default_value)
const;
255 IoPtr
get(
const std::string &key, IoPtr default_value)
const;
256 WaypointPtr
get(
const std::string &key, WaypointPtr default_value)
const;
270 void set(
const std::string &key,
const std::vector<bool> &value);
280 std::vector<bool>
get(
const std::string &key,
281 const std::vector<bool> &default_value)
const;
296 void set(
const std::string &key,
const std::vector<int> &value);
306 std::vector<int>
get(
const std::string &key,
307 const std::vector<int> &default_value)
const;
322 void set(
const std::string &key,
const std::vector<long> &value);
323 void set(
const std::string &key,
const std::vector<uint64_t> &value);
333 std::vector<long>
get(
const std::string &key,
334 const std::vector<long> &default_value)
const;
335 std::vector<uint64_t>
get(
const std::string &key,
336 const std::vector<uint64_t> &default_value)
const;
351 void set(
const std::string &key,
const std::vector<float> &value);
361 std::vector<float>
get(
const std::string &key,
362 const std::vector<float> &default_value)
const;
377 void set(
const std::string &key,
const std::vector<double> &value);
387 std::vector<double>
get(
const std::string &key,
388 const std::vector<double> &default_value)
const;
403 void set(
const std::string &key,
const std::vector<std::string> &value);
414 std::vector<std::string>
get(
415 const std::string &key,
416 const std::vector<std::string> &default_value)
const;
431 void set(
const std::string &key, TCPPtr value);
441 TCPPtr
get(
const std::string &key, TCPPtr default_value)
const;
456 void set(
const std::string &key, FeaturePtr value);
466 FeaturePtr
get(
const std::string &key, FeaturePtr default_value)
const;
482 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...
std::vector< std::string > get(const std::string &key, const std::vector< std::string > &default_value) const
Get the std::string[] as value assigned to the specified key.
bool isSet(const std::string &key) const
Check if a key is present in the data model.
void set(const std::string &key, FeaturePtr value)
Assign a Feature value to the specified key.
void set(const std::string &key, const std::string &value)
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
Get the TCP value assigned to the specified key.
int get(const std::string &key, int default_value) const
Get the int value assigned to the specified key.
ExpressionPtr get(const std::string &key, ExpressionPtr default_value) const
bool remove(const std::string &key)
Remove a key-value pair from the data model.
void set(const std::string &key, const std::vector< double > &value)
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)
Assign a long[] as value to the specified key.
std::string get(const std::string &key, const std::string &default_value) const
Get the std::string value assigned to the specified key.
std::vector< bool > get(const std::string &key, const std::vector< bool > &default_value) const
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
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
Get the float value assigned to the specified key.
void set(const std::string &key, bool value)
Assign a bool value to the specified key.
long get(const std::string &key, long default_value) const
Get the long value assigned to the specified key.
void set(const std::string &key, double value)
Assign a double value to the specified key.
void set(const std::string &key, const std::vector< std::string > &value)
Assign a std::string[] as value to the specified key.
void set(const std::string &key, VariablePtr value)
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)
Assign a float[] as value to the specified key.
void set(const std::string &key, const std::vector< bool > &value)
Assign a bool[] as value to the specified key.
void set(const std::string &key, float value)
Assign a float value to the specified key.
VariablePtr get(const std::string &key, VariablePtr default_value) const
Get the Variable value assigned to the specified key.
std::vector< float > get(const std::string &key, const std::vector< float > &default_value) const
Get the float[] as value assigned to the specified key.
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
Get the double value assigned to the specified key.
std::vector< int > get(const std::string &key, const std::vector< int > &default_value) const
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
Get the double[] as value assigned to the specified key.
void set(const std::string &key, TCPPtr value)
Assign a TCP value to the specified key.
bool get(const std::string &key, bool default_value) const
Get the bool value assigned to the specified key.
void set(const std::string &key, PayloadPtr value)
void set(const std::string &key, int value)
Assign an int value to the specified key.
void set(const std::string &key, const std::vector< int > &value)
Assign a int[] as value to the specified key.
FeaturePtr get(const std::string &key, FeaturePtr default_value) const
Get the Feature value assigned to the specified key.
void set(const std::string &key, long value)
Assign a long value to the specified key.
std::set< std::string > getKeys() const
Get a set of all the keys in the data model.