A RSC wrapper class to marshal objects of type Uuid.
More...
#include <RscGuid.hpp>
A RSC wrapper class to marshal objects of type Uuid.
◆ RscGuid()
Arp::Base::Rsc::Commons::RscGuid::RscGuid |
( |
const Uuid & |
uuid | ) |
|
Constructs a RscGuid from the given Uuid argument.
- Parameters
-
uuid | The UUID to be wrapped by this instance for RSC marshalling. |
◆ GetData()
const byte * Arp::Base::Rsc::Commons::RscGuid::GetData |
( |
void |
| ) |
const |
Gets the binary data of this object.
The size of the returned data might be determined by GetDataSize() operation.
- Returns
- A pointer to the binary data of this object.
◆ GetDataSize()
constexpr size_t Arp::Base::Rsc::Commons::RscGuid::GetDataSize |
( |
void |
| ) |
|
|
staticconstexpr |
Gets the size of the internal buffer to store the Uuid.
- Returns
- The size of the data.
◆ Parse()
RscGuid Arp::Base::Rsc::Commons::RscGuid::Parse |
( |
const String & |
input | ) |
|
|
static |
Parses the input string and returns the resulting as RscGuid.
- Parameters
-
input | The input string to parse. |
- Returns
- The parsed input as RscGuid on success.
- Exceptions
-
ArgumentException | If the input is invalid. |
◆ Read()
void Arp::Base::Rsc::Commons::RscGuid::Read |
( |
RscReader & |
reader | ) |
|
Reads this instance from RSC.
- Parameters
-
reader | The RSC reader to read from. |
◆ SetData()
void Arp::Base::Rsc::Commons::RscGuid::SetData |
( |
byte * |
pData, |
|
|
size_t |
dataSize |
|
) |
| |
Sets the binary data of this object.
- Parameters
-
pData | The data to set. |
dataSize | The size of the data buffer. |
◆ ToString()
String Arp::Base::Rsc::Commons::RscGuid::ToString |
( |
void |
| ) |
const |
Converts this instance into a String.
- Returns
- The String representing this instance.
◆ ToUuid()
Uuid Arp::Base::Rsc::Commons::RscGuid::ToUuid |
( |
void |
| ) |
const |
Converts this instance into an Uuid.
- Returns
- The Uuid representing this instance.
◆ TryParse()
bool Arp::Base::Rsc::Commons::RscGuid::TryParse |
( |
const String & |
input, |
|
|
RscGuid & |
result |
|
) |
| |
|
static |
Tries to parse the input string.
- Parameters
-
input | The input string to parse. |
result | The resulting RscGuid object on success. |
- Returns
true
on success, otherwise false
.
◆ Write()
void Arp::Base::Rsc::Commons::RscGuid::Write |
( |
RscWriter & |
writer | ) |
const |
Writes this instance to RSC.
- Parameters
-
writer | The RSC writer to write to. |
◆ operator!=
ARP_EXPORT bool operator!= |
( |
const RscGuid & |
left, |
|
|
const RscGuid & |
right |
|
) |
| |
|
friend |
Compares the left argument to the right argument on inequality.
- Parameters
-
left | The left argument to compare the right argument to. |
right | The right argument to be compared to the left argument. |
- Returns
true
if the left argument is not equal to the right argument, otherwise false
.
◆ operator==
ARP_EXPORT bool operator== |
( |
const RscGuid & |
left, |
|
|
const RscGuid & |
right |
|
) |
| |
|
friend |
Compares the left argument to the right argument on equality.
- Parameters
-
left | The left argument to compare the right argument to. |
right | The right argument to be compared to the left argument. |
- Returns
true
if the left argument is equal to the right argument, otherwise false
.
The documentation for this class was generated from the following files:
- Arp/Base/Rsc/Commons/RscGuid.hpp
- Arp/Base/Rsc/Commons/RscGuid.cpp