#include <cod.hh>
Inheritance diagram for COD:
It is a binary file format for saving and loading Vobjects, and (in the form of the RemoteCOD subclass) is also used for efficient batch downloads of the state of many remote vobjects.
Definition at line 32 of file cod.hh.
|
Constructor. Does not initialize with an iostream, so you will have to supply a buffer when you call readCOD or writeCOD.
|
|
Constructor.
|
|
Destructor.
|
|
Add a Vobject to this COD. This uses the supplied values, overriding the information stored in the Vobject itself. It does not call Vobject::saveState()
|
|
Add a Vobject to this COD. This uses the supplied values, overriding the information stored in the Vobject itself. It does not call Vobject::saveState()
|
|
Add a Vobject to this COD.
Definition at line 70 of file cod.cc. Referenced by LocalSearch::doActions(), RemoteCOD::readCOD(), and readCOD(). |
|
Definition at line 454 of file cod.cc. Referenced by RemoteCOD::readCOD(), and readCOD(). |
|
Clear the COD Vobject table.
Definition at line 57 of file cod.cc. Referenced by ~COD(). |
|
Computes the output size of the COD.
Definition at line 342 of file cod.cc. Referenced by writeCOD(). |
|
Get the default local site.
Definition at line 561 of file cod.cc. Referenced by LocalSearch::doActions(). |
|
Get the Vobject by position in the COD Vobject table.
|
|
Get the Vobject from the COD Vobject table by site name.
Definition at line 126 of file cod.cc. Referenced by LocalSearch::doActions(). |
|
Definition at line 819 of file cod.cc. Referenced by writeCOD(). |
|
Definition at line 872 of file cod.cc. Referenced by checkCOD(). |
|
Number of Vobjects in the COD Vobject table.
|
|
A utility function which writes some variables to the supplied buffer, following the format string. The values are written in network byte order (big-endian). The format string supports the following data types: 'c': a char, or single byte 's': a short, or 16 bit integer 'l': a long, or 32 bit integer 'S': a string. This must actually be passed in as two values, first the length (a 16 bit unsigned integer) and then a char* to the actual character data. The string is packed using a leading 16 bit length followed by the string data. 'f': a 32-bit IEEE floating point number
Definition at line 686 of file cod.cc. Referenced by A3DL::PolygonMesh::packTextureSpace(), A3DL::PolygonMesh::setNormal(), A3DL::PolygonMesh::setNormals(), A3DL::PolygonMesh::setPolygon(), A3DL::PolygonMesh::setPolygons(), A3DL::PolygonMesh::setTexel(), A3DL::PolygonMesh::setTexels(), A3DL::PolygonMesh::setVertex(), A3DL::PolygonMesh::setVertices(), writeCOD(), writeObjectChildren(), and writeObjectDesc(). |
|
|
|
Definition at line 392 of file cod.cc. Referenced by checkCOD(), RemoteCOD::readCOD(), readCOD(), readLong(), readObjectDesc(), readShort(), and readStr(). |
|
Read the COD from the supplied data buffer.
Reimplemented in RemoteCOD. |
|
Read a COD from the initialized iostream.
Reimplemented in RemoteCOD. Definition at line 494 of file cod.cc. Referenced by checkCOD(), RemoteCOD::readCOD(), and readCOD(). |
|
Definition at line 282 of file cod.cc. Referenced by RemoteCOD::readCOD(), readCOD(), readObjectChildren(), and readObjectDesc(). |
|
Definition at line 330 of file cod.cc. Referenced by RemoteCOD::readCOD(), and readCOD(). |
|
Definition at line 291 of file cod.cc. Referenced by RemoteCOD::readCOD(), and readCOD(). |
|
Definition at line 273 of file cod.cc. Referenced by readObjectDesc(). |
|
Definition at line 260 of file cod.cc. Referenced by readObjectChildren(), and readObjectDesc(). |
|
Remove a Vobject from the COD Vobject table.
|
|
Remove a Vobject from the COD Vobject table.
|
|
Change the iostream to use.
|
|
A utility function that reads some values from a packed data buffer. It is symmetric to the unpack() function. The only major difference being that pointers to variables are passed in to which the unpacked values will be assigned.
Definition at line 750 of file cod.cc. Referenced by A3DL::PolygonMesh::getNormals(), A3DL::PolygonMesh::getPolygons(), A3DL::PolygonMesh::getTexels(), A3DL::PolygonMesh::getVertices(), readLong(), readShort(), readStr(), and A3DL::PolygonMesh::unpackTextureSpace(). |
|
|
|
Definition at line 374 of file cod.cc. Referenced by writeCOD(), writeObjectChildren(), and writeObjectDesc(). |
|
Write the current COD to a buffer. The buffer is malloc()'d by writeCOD and returned via the supplied parameters.
|
|
Write the current COD to the initialized iostream.
Definition at line 359 of file cod.cc. Referenced by LocalSearch::handleSearch(). |
|
Definition at line 219 of file cod.cc. Referenced by computeSize(), and writeCOD(). |
|
Definition at line 171 of file cod.cc. Referenced by computeSize(), and writeCOD(). |
|
Definition at line 71 of file cod.hh. Referenced by checkCOD(), read(), readCOD(), readLong(), readShort(), readStr(), write(), writeCOD(), writeObjectChildren(), writeObjectDesc(), and ~COD(). |
|
Definition at line 70 of file cod.hh. Referenced by checkCOD(), read(), readCOD(), and writeCOD(). |
|
Definition at line 63 of file cod.hh. Referenced by checkCOD(), pack(), read(), setStream(), unpack(), and writeCOD(). |
|
Definition at line 64 of file cod.hh. Referenced by COD(), getLocalSite(), readCOD(), writeObjectDesc(), and ~COD(). |
|
Definition at line 69 of file cod.hh. Referenced by gzipUncompress(), read(), readCOD(), write(), and writeCOD(). |
|
Definition at line 67 of file cod.hh. Referenced by addVobject(), clear(), computeSize(), getVobject(), numVobjects(), removeVobject(), and writeCOD(). |
|
Definition at line 66 of file cod.hh. Referenced by addVobject(), clear(), getVobject(), readCOD(), removeVobject(), and writeObjectChildren(). |