1 #ifndef OpenTestSystem_Otx_Runtime_Api_DataTypes_Map_H
2 #define OpenTestSystem_Otx_Runtime_Api_DataTypes_Map_H
7 namespace OpenTestSystem {
namespace Otx {
namespace Runtime {
namespace Api {
namespace DataTypes {
14 std::map<std::shared_ptr<Object>, std::shared_ptr<Object>> _internalMap;
28 void Put(std::shared_ptr<Object> key, std::shared_ptr<Object> value);
34 void Remove(
const std::shared_ptr<Object> &key);
40 std::shared_ptr<List>
Keys();
64 std::shared_ptr<Object> &operator[] (std::shared_ptr<Object> key);
70 std::shared_ptr<Object> &operator[] (
long key);
76 std::shared_ptr<Object> &operator[] (std::string key);
Represents OTX Map DataType.
Definition: Map.h:12
void Put(std::shared_ptr< Object > key, std::shared_ptr< Object > value)
Puts a key with new value. If the key already exists, the current value will be overridden.
std::shared_ptr< List > Keys()
Gets list of keys.
size_t Size() const
Gets Map size.
std::shared_ptr< List > Values()
Gets list of values.
bool HasKey(Object &key)
Checks if this Map has a key.
void Remove(const std::shared_ptr< Object > &key)
Removes a key and its value.
std::string ToLiteralString() const
Gets literal string.
Represents base of OTX DataTypes.
Definition: Object.h:17
Namespace containing all objects related to testing inside automotive industry