Reads data from Rsc
More...
#include <RscReader.hpp>
|
| RscReader (BinaryReader2 &binaryReader, RscClientContext *pClientContext=nullptr) |
| Constructs an RscReader instance.
|
|
| RscReader (const RscReader &arg)=default |
| Copy constructor.
|
|
RscReader & | operator= (const RscReader &arg)=default |
| Assignment operator.
|
|
| ~RscReader (void)=default |
| Destructs this instance and frees all resources.
|
|
RscStream | GetStream (void) |
| Creates an instance of RscStream initialized to read stream data. More...
|
|
RemotingReader & | GetRemotingReader (void) |
| Returns reference to RemotingReader More...
|
|
void | ReadStream (RscStreamAdapter &stream) |
| Reads the data from remote into the supplied stream. More...
|
|
template<class T > |
T | Read (void) |
| Reads an element of T from Rsc. With data tagging enabled RscType of T is validated. More...
|
|
template<class T > |
void | Read (T &result) |
| Reads an element of T from Rsc. With data tagging enabled RscType of T is validated. More...
|
|
template<class T > |
void | Read (T &result, bool readTag) |
| Reads an element of T from Rsc. With data tagging enabled RscType of T is validated. More...
|
|
template<int N> |
void | ReadString (String &result) |
| Reads a string from Rsc. The String will be read in format Utf-8. The template parameter gives the maximum number of characters. More...
|
|
template<int N> |
void | ReadString (char(&value)[N]) |
| Reads a string from Rsc. The String will be read in format Utf-8. The template parameter gives the maximum number of characters. More...
|
|
template<int N> |
void | ReadObjectString (char(&value)[N]) |
| Reads a string in object format from Rsc. The template parameter gives the maximum number of characters. Format Utf-16 is not suppoerted. More...
|
|
template<class T > |
void | ReadArray (std::vector< T > &result) |
| Reads an array from Rsc. The read data is stored as std::vector. More...
|
|
template<class T > |
void | ReadArray (std::vector< std::vector< T > > &result) |
| Reads an array of array from Rsc. The read data is stored as std::vector. More...
|
|
template<class T , size_t N> |
void | ReadArray (std::array< T, N > &result) |
| Reads an array from Rsc. The read data is stored as std::array. More...
|
|
◆ GetRemotingReader()
RemotingReader & Arp::System::Rsc::Services::RscReader::GetRemotingReader |
( |
void |
| ) |
|
|
inline |
Returns reference to RemotingReader
- Returns
- reference to RemotingReader
◆ GetStream()
RscStream Arp::System::Rsc::Services::RscReader::GetStream |
( |
void |
| ) |
|
|
inline |
Creates an instance of RscStream initialized to read stream data.
- Returns
- instance of RscStream
◆ Read() [1/3]
template<class T >
void Arp::System::Rsc::Services::RscReader::Read |
( |
T & |
result | ) |
|
|
inline |
Reads an element of T from Rsc. With data tagging enabled RscType of T is validated.
- Parameters
-
result | Reference to memory to write element |
◆ Read() [2/3]
template<class T >
void Arp::System::Rsc::Services::RscReader::Read |
( |
T & |
result, |
|
|
bool |
readTag |
|
) |
| |
|
inline |
Reads an element of T from Rsc. With data tagging enabled RscType of T is validated.
- Parameters
-
result | Reference to memory to write element |
readTag | If true the data tag is read, otherwise the tag is ommitted. |
◆ Read() [3/3]
template<class T >
T Arp::System::Rsc::Services::RscReader::Read |
( |
void |
| ) |
|
|
inline |
Reads an element of T from Rsc. With data tagging enabled RscType of T is validated.
- Returns
- Read element of type T
- Template Parameters
-
◆ ReadArray() [1/3]
template<class T , size_t N>
void Arp::System::Rsc::Services::RscReader::ReadArray |
( |
std::array< T, N > & |
result | ) |
|
|
inline |
Reads an array from Rsc. The read data is stored as std::array.
- Parameters
-
result | Reference to std::array. |
- Template Parameters
-
T | Type of array elements |
N | Size of static array |
◆ ReadArray() [2/3]
template<class T >
void Arp::System::Rsc::Services::RscReader::ReadArray |
( |
std::vector< std::vector< T > > & |
result | ) |
|
|
inline |
Reads an array of array from Rsc. The read data is stored as std::vector.
- Parameters
-
result | Reference to std::vector<std::vector>. |
- Template Parameters
-
◆ ReadArray() [3/3]
template<class T >
void Arp::System::Rsc::Services::RscReader::ReadArray |
( |
std::vector< T > & |
result | ) |
|
|
inline |
Reads an array from Rsc. The read data is stored as std::vector.
- Parameters
-
result | Reference to std::vector. |
- Template Parameters
-
◆ ReadObjectString()
template<int N>
void Arp::System::Rsc::Services::RscReader::ReadObjectString |
( |
char(&) |
value[N] | ) |
|
|
inline |
Reads a string in object format from Rsc. The template parameter gives the maximum number of characters. Format Utf-16 is not suppoerted.
- Parameters
-
result | Reference to character array to store data |
- Template Parameters
-
N | Maximum number of characters. |
◆ ReadStream()
void Arp::System::Rsc::Services::RscReader::ReadStream |
( |
RscStreamAdapter & |
stream | ) |
|
Reads the data from remote into the supplied stream.
- Parameters
-
stream | The stream to copy the read data to. |
◆ ReadString() [1/2]
template<int N>
void Arp::System::Rsc::Services::RscReader::ReadString |
( |
char(&) |
value[N] | ) |
|
|
inline |
Reads a string from Rsc. The String will be read in format Utf-8. The template parameter gives the maximum number of characters.
- Parameters
-
result | Reference to character array to store data |
- Template Parameters
-
N | Maximum number of characters. |
◆ ReadString() [2/2]
template<int N>
void Arp::System::Rsc::Services::RscReader::ReadString |
( |
String & |
result | ) |
|
|
inline |
Reads a string from Rsc. The String will be read in format Utf-8. The template parameter gives the maximum number of characters.
- Parameters
-
result | Reference to String object to store data |
- Template Parameters
-
N | Maximum number of characters. |
The documentation for this class was generated from the following file: