'ODTONE - Open Dot Twenty One'

PrevUpHomeNext

Class oarchive

odtone::mih::oarchive

Synopsis

// 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 > &);
};

Description

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/destruct

  1. oarchive(archive & ar);

    Construct an output archive.

    Parameters:

    ar

    The archive from where extract the data.

oarchive public member functions

  1. void reset(archive & ar);

    Overwrites the current data.

    Parameters:

    ar

    The archive from where extract the data.

  2. template<typename InputIteratorT> 
      void append(InputIteratorT begin, InputIteratorT end);

    Inserts elements at the output archive current position.

    Parameters:

    begin

    The position of the first element to be copied.

    end

    The position of the first element to be copied.

  3. void position(uint pos);

    Point to a new position in the output archive.

    Parameters:

    pos

    The new position to point in the output archive.

  4. uint position() const;

    Get the current position in the output archive.

    Returns:

    The current position in the output archive.

  5. uint length() const;

    Get the length of the output archive.

    Returns:

    The length of the output archive.

  6. void list_length(uint len);

    Inserts the size of a list of a particular data type.

    Parameters:

    len

    the size of a list of a particular data type.

  7. oarchive & operator&(bool val);

    Inserts a boolean type value from the current position in the output archive.

    Parameters:

    val

    The value to insert.

    Returns:

    Returns the output archive.

  8. oarchive & operator&(uint8 val);

    Inserts a odtone::uint8 type value from the current position in the output archive.

    Parameters:

    val

    The value to insert.

    Returns:

    Returns the output archive.

  9. oarchive & operator&(uint16 val);

    Inserts a odtone::uint16 type value from the current position in the output archive.

    Parameters:

    val

    The value to insert.

    Returns:

    Returns the output archive.

  10. oarchive & operator&(uint32 val);

    Inserts a odtone::uint32 type value from the current position in the output archive.

    Parameters:

    val

    The value to insert.

    Returns:

    Returns the output archive.

  11. oarchive & operator&(uint64 val);

    Inserts a odtone::uint64 type value from the current position in the output archive.

    Parameters:

    val

    The value to insert.

    Returns:

    Returns the output archive.

  12. oarchive & operator&(sint8 val);

    Inserts a odtone::sint8 type value from the current position in the output archive.

    Parameters:

    val

    The value to insert.

    Returns:

    Returns the output archive.

  13. oarchive & operator&(sint16 val);

    Inserts a odtone::sint16 type value from the current position in the output archive.

    Parameters:

    val

    The value to insert.

    Returns:

    Returns the output archive.

  14. oarchive & operator&(sint32 val);

    Inserts a odtone::sint32 type value from the current position in the output archive.

    Parameters:

    val

    The value to insert.

    Returns:

    Returns the output archive.

  15. oarchive & operator&(sint64 val);

    Inserts a odtone::sint64 type value from the current position in the output archive.

    Parameters:

    val

    The value to insert.

    Returns:

    Returns the output archive.

  16. oarchive & operator&(std::string & val);

    Inserts a odtone::mih::octet_string type value from the current position in the output archive.

    Parameters:

    val

    Reference where to get the value to insert.

    Returns:

    Returns the output archive.

  17. oarchive & operator&(std::vector< uint8 > & buf);

    Inserts a list of a particular type value from the current position in the output archive.

    Parameters:

    buf

    The value to insert.

    Returns:

    Returns the output archive.


PrevUpHomeNext