Woman, Life, Freedom


Adaptive AUTOSAR
ARA public interface header documentation
ara::core::InstanceSpecifier Class Referencefinal

AUTOSAR shortname-path wrapper. More...

#include <instance_specifier.h>

Public Member Functions

 InstanceSpecifier (std::string metaModelIdentifier)
 Constructor. More...
 
 InstanceSpecifier (const InstanceSpecifier &other)
 
 InstanceSpecifier (InstanceSpecifier &&other) noexcept
 
InstanceSpecifieroperator= (const InstanceSpecifier &other)
 
InstanceSpecifieroperator= (InstanceSpecifier &&other)
 
bool operator== (const InstanceSpecifier &other) const noexcept
 
bool operator== (std::string other) const noexcept
 
bool operator!= (const InstanceSpecifier &other) const noexcept
 
bool operator!= (std::string other) const noexcept
 
bool operator< (const InstanceSpecifier &other) const noexcept
 
bool operator> (const InstanceSpecifier &other) const noexcept
 
std::string ToString () const noexcept
 Convert the instance to a string. More...
 
void Serialize (std::vector< uint8_t > &serializedObject) const
 Serialized the object. More...
 

Static Public Member Functions

static Result< InstanceSpecifierCreate (std::string metaModelIdentifier)
 InstanceSpecifier factory. More...
 

Detailed Description

AUTOSAR shortname-path wrapper.

Constructor & Destructor Documentation

◆ InstanceSpecifier()

ara::core::InstanceSpecifier::InstanceSpecifier ( std::string  metaModelIdentifier)
explicit

Constructor.

Parameters
metaModelIdentifierShortname-path

Member Function Documentation

◆ Create()

Result< InstanceSpecifier > ara::core::InstanceSpecifier::Create ( std::string  metaModelIdentifier)
static

InstanceSpecifier factory.

Parameters
metaModelIdentifierShortname-path
Returns
Result containing the created InstanceSpecifier

◆ Serialize()

void ara::core::InstanceSpecifier::Serialize ( std::vector< uint8_t > &  serializedObject) const

Serialized the object.

Parameters
[out]serializedObjectSerialized object byte vector
Note
This is not an ARA specified method.

◆ ToString()

std::string ara::core::InstanceSpecifier::ToString ( ) const
noexcept

Convert the instance to a string.

Returns
Meta-model ID (Shortname-path)