version 3.3

VRS::Serializer Class Reference

#include <vrs/io/serializer.h>

Inheritance diagram for VRS::Serializer:

VRS::ObjectWriter VRS::SharedObj VRS::Visitable

List of all members.

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)


Detailed Description

Class for serializing a single VRS object.

Member Function Documentation

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   
)


The documentation for this class was generated from the following file:

Generated on Thu May 23 06:00:26 2013 by Doxygen 1.5.6
© 2001-2010 Hasso-Plattner-Institut | Impressum | Contact