PLCnext API Documentation 25.0.2.69
|
Reads marshaled data of RSC services. More...
#include <RscReader.hpp>
Public Member Functions | |
RscReader (Stream &remoteStream) | |
Constructs a RscReader instance. More... | |
RscReader (const RscReader &arg) | |
The default copy constructor. More... | |
RscReader (RscReader &&arg) noexcept | |
The default move constructor. More... | |
RscReader & | operator= (const RscReader &arg) |
The default copy-assignment operator. More... | |
RscReader & | operator= (RscReader &&arg) noexcept |
The default move-assignment operator. More... | |
~RscReader (void) | |
The default destructor. | |
RscStream | GetStream (void) |
Gets a stream initialized by this instance. More... | |
RscStreamReader | GetStreamReader (void) |
Gets a stream reader initialized by this instance. More... | |
void | Read (RscPtr &result, bool omitTag=false) |
Reads a value from RSC. More... | |
void | Read (RscConstPtr &result, bool omitTag=false) |
void | Read (String &result, bool omitTag=false) |
Reads a value from RSC. More... | |
void | Read (DateTime &result, bool omitTag=false) |
Reads a value from RSC. More... | |
void | Read (RscStream &stream, bool omitTag=false) |
Reads a stream from RSC. More... | |
void | Read (SecurityToken &result, bool omitTag=false) |
Reads a value from RSC. More... | |
void | Read (RscVariantBase &result, bool omitTag=false) |
Reads a value from RSC. More... | |
template<RscEnumType T> | |
void | Read (T &result, bool omitTag=false) |
Reads a value from RSC. More... | |
template<RscPrimitiveType T> | |
void | Read (T &result, bool omitTag=false) |
template<RscClassType T> | |
void | Read (T &result, bool omitTag=false) |
template<RscSerializableType T> | |
void | Read (T &result, bool omitTag=false) |
template<int N> | |
void | Read (RscVariant< N > &result, bool omitTag=false) |
Reads a value from RSC. More... | |
template<class T > | |
void | Read (std::vector< T > &result, bool omitTag=false) |
Reads an array from RSC. More... | |
template<class T > | |
void | Read (std::vector< std::vector< T > > &result, bool omitTag=false) |
Reads an array of arrays from RSC. More... | |
template<class T , size_t N> | |
void | Read (std::array< T, N > &result, bool omitTag=false) |
Reads an array from RSC. More... | |
RscType | ReadTag (void) |
Reads a data tag from RSC. More... | |
void | ReadTag (RscType expectedTag) |
Reads a data tag from RSC. More... | |
size_t | ReadFieldCount (void) |
Reads the field count of a struct from RSC. More... | |
size_t | ReadArrayLength (void) |
Reads the array length of an array from RSC. More... | |
void | ReadBeginStruct (size_t fieldCount) |
Reads the field count of a struct from RSC. More... | |
void | ReadEnumeratorTag (RscType expectedTag, bool &isEndTag) |
Reads an enumerator tag from RSC. More... | |
Impl & | GetImpl (void) |
For internal use only. More... | |
const Impl & | GetImpl (void) const |
Reads marshaled data of RSC services.
This class is not intended for direct use, but required by RscGenerator to implement services.
|
explicit |
Constructs a RscReader instance.
remoteStream | The remoteStream stream to read from. |
|
default |
The default copy constructor.
arg | The argument to copy. |
|
defaultnoexcept |
The default move constructor.
arg | The argument to move. |
const RscReader::Impl & Arp::Base::Rsc::Commons::Services::RscReader::GetImpl | ( | void | ) |
For internal use only.
RscStream Arp::Base::Rsc::Commons::Services::RscReader::GetStream | ( | void | ) |
Gets a stream initialized by this instance.
RscStreamReader Arp::Base::Rsc::Commons::Services::RscReader::GetStreamReader | ( | void | ) |
Gets a stream reader initialized by this instance.
|
default |
The default copy-assignment operator.
arg | The argument to copy. |
|
defaultnoexcept |
The default move-assignment operator.
arg | The argument to move. |
void Arp::Base::Rsc::Commons::Services::RscReader::Read | ( | DateTime & | result, |
bool | omitTag = false |
||
) |
Reads a value from RSC.
result | The resulting value. |
omitTag | true if the data tag should be omitted during read, otherwise false . |
void Arp::Base::Rsc::Commons::Services::RscReader::Read | ( | RscPtr & | result, |
bool | omitTag = false |
||
) |
Reads a value from RSC.
result | The resulting value. |
omitTag | true if the data tag should be omitted during read, otherwise false . |
void Arp::Base::Rsc::Commons::Services::RscReader::Read | ( | RscStream & | stream, |
bool | omitTag = false |
||
) |
Reads a stream from RSC.
stream | The stream to read. |
omitTag | true if the data tag should be omitted during read, otherwise false . |
|
inline |
Reads a value from RSC.
result | The resulting value. |
omitTag | true if the data tag should be omitted during read, otherwise false . |
void Arp::Base::Rsc::Commons::Services::RscReader::Read | ( | RscVariantBase & | result, |
bool | omitTag = false |
||
) |
Reads a value from RSC.
result | The resulting value. |
omitTag | true if the data tag should be omitted during read, otherwise false . |
void Arp::Base::Rsc::Commons::Services::RscReader::Read | ( | SecurityToken & | result, |
bool | omitTag = false |
||
) |
Reads a value from RSC.
result | The resulting value. |
omitTag | true if the data tag should be omitted during read, otherwise false . |
|
inline |
Reads an array from RSC.
result | The resulting array. |
omitTag | true if the data tag should be omitted during read, otherwise false . |
|
inline |
Reads an array of arrays from RSC.
result | The resulting array. |
omitTag | true if the data tag should be omitted during read, otherwise false . |
|
inline |
Reads an array from RSC.
result | The resulting array. |
omitTag | true if the data tag should be omitted during read, otherwise false . |
void Arp::Base::Rsc::Commons::Services::RscReader::Read | ( | String & | result, |
bool | omitTag = false |
||
) |
Reads a value from RSC.
result | The resulting value. |
omitTag | true if the data tag should be omitted during read, otherwise false . |
|
inline |
Reads a value from RSC.
result | The resulting value. |
omitTag | true if the data tag should be omitted during read, otherwise false . |
size_t Arp::Base::Rsc::Commons::Services::RscReader::ReadArrayLength | ( | void | ) |
Reads the array length of an array from RSC.
void Arp::Base::Rsc::Commons::Services::RscReader::ReadBeginStruct | ( | size_t | fieldCount | ) |
Reads the field count of a struct from RSC.
fieldCount | The expected field count. |
RscException | If the read field count does not match the fieldCount . |
void Arp::Base::Rsc::Commons::Services::RscReader::ReadEnumeratorTag | ( | RscType | expectedTag, |
bool & | isEndTag | ||
) |
Reads an enumerator tag from RSC.
expectedTag | The expected tag. |
isEndTag | Determines if the read tag is an end tag. |
RscException | If the read tag does not match the expectedTag . |
size_t Arp::Base::Rsc::Commons::Services::RscReader::ReadFieldCount | ( | void | ) |
Reads the field count of a struct from RSC.
void Arp::Base::Rsc::Commons::Services::RscReader::ReadTag | ( | RscType | expectedTag | ) |
Reads a data tag from RSC.
expectedTag | The expected data tag. |
RscException | If the read tag does not match the expectedTag . |
RscType Arp::Base::Rsc::Commons::Services::RscReader::ReadTag | ( | void | ) |
Reads a data tag from RSC.