| VRS - The Virtual Rendering System |
| version 3.3 |
#include <vrs/io/serializer.h>

Public Member Functions | |
| virtual bool | canHandle (SharedObj *obj) const |
| virtual void | write (SharedObj *obj, const std::string &filename) const |
| virtual const char * | objectFormatName () const |
| virtual const char * | objectFileSuffix () const |
| virtual double | priority () const |
| VRS_TYPEINFO (Serializer, ObjectWriter) | |
Static Public Member Functions | |
| static void | writeFile (SharedObj *obj, const std::string &filename) |
| virtual bool VRS::Serializer::canHandle | ( | SharedObj * | obj | ) | const [inline, virtual] |
Implements VRS::ObjectWriter.
| virtual void VRS::Serializer::write | ( | SharedObj * | obj, | |
| const std::string & | filename | |||
| ) | const [virtual] |
`canHandle' checks whether a concrete writer class can handle a given object or not. `write' will output the object to a file with filename. In the case of i/o errors, an exception of type IOError is thrown. 'write' assumes that the object passed can be handled, i.e., 'canHandle' must return true for that object.
Implements VRS::ObjectWriter.
| static void VRS::Serializer::writeFile | ( | SharedObj * | obj, | |
| const std::string & | filename | |||
| ) | [static] |
| virtual const char* VRS::Serializer::objectFormatName | ( | void | ) | const [inline, virtual] |
Implements VRS::ObjectWriter.
| virtual const char* VRS::Serializer::objectFileSuffix | ( | ) | const [inline, virtual] |
`objectFormatName' gives a verbose description of the file format that is written to. `objectFileSuffix' is the most widely used suffix used for this format.
Implements VRS::ObjectWriter.
| virtual double VRS::Serializer::priority | ( | ) | const [inline, virtual] |
Reimplemented from VRS::ObjectWriter.
| VRS::Serializer::VRS_TYPEINFO | ( | Serializer | , | |
| ObjectWriter | ||||
| ) |