Woman, Life, Freedom


Adaptive AUTOSAR
ARA public interface header documentation
function_group.h
1#ifndef FUNCTION_GROUP_H
2#define FUNCTION_GROUP_H
3
4#include "../core/instance_specifier.h"
5#include "../core/result.h"
6
7namespace ara
8{
9 namespace exec
10 {
13 class FunctionGroup final
14 {
15 private:
16 core::InstanceSpecifier mInstnaceSpecifier;
17
18 FunctionGroup(std::string metaModelIdentifier);
19
20 public:
25 std::string metaModelIdentifier);
26
27 FunctionGroup() = delete;
28 FunctionGroup(const FunctionGroup &other) = delete;
30 FunctionGroup &operator=(const FunctionGroup &other) = delete;
31 FunctionGroup &operator=(FunctionGroup &&other);
32 ~FunctionGroup() noexcept = default;
33
36 const core::InstanceSpecifier& GetInstance() const noexcept;
37
38 inline bool operator==(const FunctionGroup &other) const noexcept
39 {
40 return mInstnaceSpecifier == other.mInstnaceSpecifier;
41 }
42
43 inline bool operator!=(const FunctionGroup &other) const noexcept
44 {
45 return mInstnaceSpecifier != other.mInstnaceSpecifier;
46 }
47 };
48 }
49}
50
51#endif
AUTOSAR shortname-path wrapper.
Definition: instance_specifier.h:14
A wrapper around the callee's return value and its possible error.
Definition: result.h:16
A function group representative based on a manifest.
Definition: function_group.h:14
const core::InstanceSpecifier & GetInstance() const noexcept
Get the instance specifier.
Definition: function_group.cpp:29
static core::Result< FunctionGroup > Create(std::string metaModelIdentifier)
FunctionGroup factory.
Definition: function_group.cpp:11