This class implements a maintenance data element.
More...
#include <Maintenance.h>
|
| | Element ()=default |
| | Creates a new empty element.
|
| |
| | Element (const Element &element)=default |
| | Copy constructor.
|
| |
| | Element (Element &&element)=default |
| | Move constructor.
|
| |
| | Element (const std::string &name, const uint64_t id, const Timestamp timestamp, const std::string &tag, const Buffer &buffer) |
| | Creates a new maintenance element.
|
| |
| | Element (const std::string &name, const uint64_t id, const Timestamp timestamp, const std::string &tag, Buffer &&buffer) |
| | Creates a new maintenance element.
|
| |
| const std::string & | name () const |
| | Returns the name of the maintenance manager to which the maintenance of this element data has been sent.
|
| |
| std::string & | name () |
| | Returns the name of the maintenance manager to which the maintenance of this element data has been sent.
|
| |
| uint64_t | id () const |
| | Return sthe id of the maintenance manager to which the maintenance data of this element has been sent.
|
| |
| Timestamp | timestamp () const |
| | The timestamp of the maintenance data of this element.
|
| |
| const std::string & | tag () const |
| | Returns the tag of the maintenance data of this element.
|
| |
| std::string & | tag () |
| | Returns the tag of the maintenance data of this element.
|
| |
| const Buffer & | buffer () const |
| | Returns the buffer of the maintenance data of this element.
|
| |
| Buffer & | buffer () |
| | Returns the buffer of the maintenance data of this element.
|
| |
| Element & | operator= (const Element &element)=default |
| | Assign operator.
|
| |
| Element & | operator= (Element &&element)=default |
| | Assign operator.
|
| |
|
| std::string | name_ |
| | The name of the manager to which the data has been sent.
|
| |
| uint64_t | id_ = 0ull |
| | The id of the manager to which the data has been sent.
|
| |
| Timestamp | timestamp_ = Timestamp(false) |
| | The timestamp of the data.
|
| |
| std::string | tag_ |
| | The tag of the data.
|
| |
| Buffer | buffer_ |
| | The buffer of the data.
|
| |
This class implements a maintenance data element.
◆ Element() [1/5]
| Ocean::Maintenance::Element::Element |
( |
| ) |
|
|
default |
Creates a new empty element.
◆ Element() [2/5]
| Ocean::Maintenance::Element::Element |
( |
const Element & |
element | ) |
|
|
default |
Copy constructor.
- Parameters
-
| element | The element to be copied |
◆ Element() [3/5]
| Ocean::Maintenance::Element::Element |
( |
Element && |
element | ) |
|
|
default |
Move constructor.
- Parameters
-
| element | The element to be moved |
◆ Element() [4/5]
| Ocean::Maintenance::Element::Element |
( |
const std::string & |
name, |
|
|
const uint64_t |
id, |
|
|
const Timestamp |
timestamp, |
|
|
const std::string & |
tag, |
|
|
const Buffer & |
buffer |
|
) |
| |
|
inline |
Creates a new maintenance element.
- Parameters
-
| name | The name of the maintenance manager to which the data has been sent |
| id | The id of the maintenance manager to which the data has been set |
| timestamp | The timestamp of the maintenance data |
| tag | The tag of the maintenance data |
| buffer | The maintenance data as buffer |
◆ Element() [5/5]
| Ocean::Maintenance::Element::Element |
( |
const std::string & |
name, |
|
|
const uint64_t |
id, |
|
|
const Timestamp |
timestamp, |
|
|
const std::string & |
tag, |
|
|
Buffer && |
buffer |
|
) |
| |
|
inline |
Creates a new maintenance element.
- Parameters
-
| name | The name of the maintenance manager to which the data has been sent |
| id | The id of the maintenance manager to which the data has been set |
| timestamp | The timestamp of the maintenance data |
| tag | The tag of the maintenance data |
| buffer | The maintenance data as buffer, will be moved |
◆ buffer() [1/2]
Returns the buffer of the maintenance data of this element.
- Returns
- The buffer of the maintenance data
◆ buffer() [2/2]
Returns the buffer of the maintenance data of this element.
- Returns
- The buffer of the maintenance data
◆ id()
| uint64_t Ocean::Maintenance::Element::id |
( |
| ) |
const |
|
inline |
Return sthe id of the maintenance manager to which the maintenance data of this element has been sent.
- Returns
- The id of the maintenance manager
◆ name() [1/2]
| std::string & Ocean::Maintenance::Element::name |
( |
| ) |
|
|
inline |
Returns the name of the maintenance manager to which the maintenance of this element data has been sent.
- Returns
- The readable name of the maintenance manager
◆ name() [2/2]
| const std::string & Ocean::Maintenance::Element::name |
( |
| ) |
const |
|
inline |
Returns the name of the maintenance manager to which the maintenance of this element data has been sent.
- Returns
- The readable name of the maintenance manager
◆ operator=() [1/2]
| Element & Ocean::Maintenance::Element::operator= |
( |
const Element & |
element | ) |
|
|
default |
Assign operator.
- Parameters
-
| element | The second element to be copied |
- Returns
- Reference to this element
◆ operator=() [2/2]
| Element & Ocean::Maintenance::Element::operator= |
( |
Element && |
element | ) |
|
|
default |
Assign operator.
- Parameters
-
| element | The second element to be moved |
- Returns
- Reference to this element
◆ tag() [1/2]
| std::string & Ocean::Maintenance::Element::tag |
( |
| ) |
|
|
inline |
Returns the tag of the maintenance data of this element.
- Returns
- The tag of the maintenance data
◆ tag() [2/2]
| const std::string & Ocean::Maintenance::Element::tag |
( |
| ) |
const |
|
inline |
Returns the tag of the maintenance data of this element.
- Returns
- The tag of the maintenance data
◆ timestamp()
| Timestamp Ocean::Maintenance::Element::timestamp |
( |
| ) |
const |
|
inline |
The timestamp of the maintenance data of this element.
- Returns
- The timestamp of the maintenance data
◆ buffer_
| Buffer Ocean::Maintenance::Element::buffer_ |
|
protected |
◆ id_
| uint64_t Ocean::Maintenance::Element::id_ = 0ull |
|
protected |
The id of the manager to which the data has been sent.
◆ name_
| std::string Ocean::Maintenance::Element::name_ |
|
protected |
The name of the manager to which the data has been sent.
◆ tag_
| std::string Ocean::Maintenance::Element::tag_ |
|
protected |
◆ timestamp_
The timestamp of the data.
The documentation for this class was generated from the following file: