urbi::UBinary Class Reference

Class containing binary data of known or unknown type. More...

#include <ubinary.hh>

List of all members.

Public Member Functions

 UBinary ()
 UBinary (const UBinary &b)
 Deep copy constructor.
 UBinary (const UImage &)
 UBinary (const USound &)
UBinaryoperator= (const UBinary &b)
 Deep copy.
void buildMessage ()
 Build message from structures.
std::string getMessage () const
 Get message extracted from structures.
 ~UBinary ()
 Frees binary buffer.
int parse (const char *message, int pos, std::list< BinaryData > &bins, std::list< BinaryData >::iterator &binpos)

Public Attributes

UBinaryType type
union {
   struct {
      void *   data
 binary data
      size_t   size
   }   common
   UImage   image
   USound   sound
}; 
std::string message
 Extra bin headers(everything after BIN <size> and before ';'.


Detailed Description

Class containing binary data of known or unknown type.

Handles its memory: the data field will be freed when the destructor is called.

Definition at line 139 of file ubinary.hh.


The documentation for this class was generated from the following files:
Generated on Tue Apr 10 17:45:45 2007 for URBISDK by  doxygen 1.5.1