odtone::mih::oarchive
// In header: </home/carlos/Projectos/odtone/inc/odtone/mih/archive.hpp> class oarchive { public: // types typedef oarchive oarchive_type; // construct/copy/destruct oarchive(archive &); // public member functions void reset(archive &); template<typename InputIteratorT> void append(InputIteratorT, InputIteratorT); void position(uint); uint position() const; uint length() const; void list_length(uint); oarchive & operator&(bool); oarchive & operator&(uint8); oarchive & operator&(uint16); oarchive & operator&(uint32); oarchive & operator&(uint64); oarchive & operator&(sint8); oarchive & operator&(sint16); oarchive & operator&(sint32); oarchive & operator&(sint64); oarchive & operator&(std::string &); oarchive & operator&(std::vector< uint8 > &); };
The MIH types support serialization for the output archive. This particular archive does not include the TLV field, which is necessary to support the definition of new sequence types from existing MIH types.
oarchive
public
construct/copy/destructoarchive(archive & ar);
Construct an output archive.
Parameters: |
|
oarchive
public member functionsvoid reset(archive & ar);
Overwrites the current data.
Parameters: |
|
template<typename InputIteratorT> void append(InputIteratorT begin, InputIteratorT end);
Inserts elements at the output archive current position.
Parameters: |
|
void position(uint pos);
Point to a new position in the output archive.
Parameters: |
|
uint position() const;
Get the current position in the output archive.
Returns: |
The current position in the output archive. |
uint length() const;
Get the length of the output archive.
Returns: |
The length of the output archive. |
void list_length(uint len);
Inserts the size of a list of a particular data type.
Parameters: |
|
oarchive & operator&(bool val);
Inserts a boolean type value from the current position in the output archive.
Parameters: |
|
||
Returns: |
Returns the output archive. |
oarchive & operator&(uint8 val);
Inserts a odtone::uint8 type value from the current position in the output archive.
Parameters: |
|
||
Returns: |
Returns the output archive. |
oarchive & operator&(uint16 val);
Inserts a odtone::uint16 type value from the current position in the output archive.
Parameters: |
|
||
Returns: |
Returns the output archive. |
oarchive & operator&(uint32 val);
Inserts a odtone::uint32 type value from the current position in the output archive.
Parameters: |
|
||
Returns: |
Returns the output archive. |
oarchive & operator&(uint64 val);
Inserts a odtone::uint64 type value from the current position in the output archive.
Parameters: |
|
||
Returns: |
Returns the output archive. |
oarchive & operator&(sint8 val);
Inserts a odtone::sint8 type value from the current position in the output archive.
Parameters: |
|
||
Returns: |
Returns the output archive. |
oarchive & operator&(sint16 val);
Inserts a odtone::sint16 type value from the current position in the output archive.
Parameters: |
|
||
Returns: |
Returns the output archive. |
oarchive & operator&(sint32 val);
Inserts a odtone::sint32 type value from the current position in the output archive.
Parameters: |
|
||
Returns: |
Returns the output archive. |
oarchive & operator&(sint64 val);
Inserts a odtone::sint64 type value from the current position in the output archive.
Parameters: |
|
||
Returns: |
Returns the output archive. |
oarchive & operator&(std::string & val);
Inserts a odtone::mih::octet_string type value from the current position in the output archive.
Parameters: |
|
||
Returns: |
Returns the output archive. |
oarchive & operator&(std::vector< uint8 > & buf);
Inserts a list of a particular type value from the current position in the output archive.
Parameters: |
|
||
Returns: |
Returns the output archive. |