1#ifndef INSTANCE_SPECIFIER_H
2#define INSTANCE_SPECIFIER_H
16 std::string mMetaModelIdentifier;
39 return mMetaModelIdentifier == other.mMetaModelIdentifier;
42 inline bool operator==(std::string other)
const noexcept
44 return mMetaModelIdentifier == other;
49 return mMetaModelIdentifier != other.mMetaModelIdentifier;
52 inline bool operator!=(std::string other)
const noexcept
54 return mMetaModelIdentifier != other;
59 return mMetaModelIdentifier < other.mMetaModelIdentifier;
64 return mMetaModelIdentifier > other.mMetaModelIdentifier;
69 std::string
ToString()
const noexcept;
74 void Serialize(std::vector<uint8_t> &serializedObject)
const;
79 return lhs == rhs.ToString();
82 inline bool operator!=(std::string lhs,
const InstanceSpecifier &rhs)
noexcept
84 return lhs != rhs.ToString();
AUTOSAR shortname-path wrapper.
Definition: instance_specifier.h:14
std::string ToString() const noexcept
Convert the instance to a string.
Definition: instance_specifier.cpp:35
void Serialize(std::vector< uint8_t > &serializedObject) const
Serialized the object.
Definition: instance_specifier.cpp:40
static Result< InstanceSpecifier > Create(std::string metaModelIdentifier)
InstanceSpecifier factory.
Definition: instance_specifier.cpp:69
A wrapper around the callee's return value and its possible error.
Definition: result.h:16