The Fib multimedia system
Fib is a system for storing multimedia data (like images or films).
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
fib::cMultimediaInfo Class Reference

#include <cMultimediaInfo.h>

Collaboration diagram for fib::cMultimediaInfo:

List of all members.

Public Member Functions

unsignedLongFib getFibVersion () const
void setFibVersion (unsignedLongFib ulFibVersion)
unsignedLongFib getDatabaseVersion () const
void setDatabaseVersion (unsignedLongFib ulFibDbVersion)
bool evalueMinVersionsNumbers ()
virtual bool equal (const cMultimediaInfo &multimediaInfo) const
virtual bool operator== (const cMultimediaInfo &multimediaInfo) const
virtual bool storeXml (ostream &ostream) const
virtual intFib restoreXml (const TiXmlElement *pXmlElement)

Protected Member Functions

 cMultimediaInfo (cRoot *root)
virtual ~cMultimediaInfo ()
virtual cMultimediaInfoclone () const

Protected Attributes

unsignedLongFib ulFibVersion
unsignedLongFib ulFibDbVersion
cRootmasterRoot

Friends

class cRoot

Detailed Description

Definition at line 58 of file cMultimediaInfo.h.


Constructor & Destructor Documentation

fib::cMultimediaInfo::cMultimediaInfo ( cRoot root)
protected

The constructor for the multimediainfo. The defaultmapping for the dimension i is the mappingvalue i.

Parameters:
rootthe root -element this multimediainfo stands in/for
virtual fib::cMultimediaInfo::~cMultimediaInfo ( )
protectedvirtual

The destructor for the multimediainfo.


Member Function Documentation

virtual cMultimediaInfo* fib::cMultimediaInfo::clone ( ) const
protectedvirtual

This Method clones this object.

Returns:
a clone of this object
virtual bool fib::cMultimediaInfo::equal ( const cMultimediaInfo multimediaInfo) const
virtual

This Method checks if the given multimedianfo is equal to this multimedianfo.

Parameters:
multimediaInfothe multimedianfo which should be equal to this multimedianfo
Returns:
true if the given multimedianfo is equal to this multimedianfo, else false
bool fib::cMultimediaInfo::evalueMinVersionsNumbers ( )

This method evalues and sets the Fib -multimedialanguage and Fib -database versionnumbers, which are needed for the Fib -object.

Returns:
true if the versionsnumbers where evalued and set
unsignedLongFib fib::cMultimediaInfo::getDatabaseVersion ( ) const
Returns:
the version of the Fib -database needed for the Fib -multimediaobject
unsignedLongFib fib::cMultimediaInfo::getFibVersion ( ) const
Returns:
the version of the Fib -multimedialanguage needed for the Fib -multimediaobject
virtual bool fib::cMultimediaInfo::operator== ( const cMultimediaInfo multimediaInfo) const
virtual

This Method checks if the given multimedianfo is equal to this multimedianfo.

Parameters:
multimediaInfothe multimedianfo which should be equal to this multimedianfo
Returns:
true if the given multimedianfo is equal to this multimedianfo, else false
virtual intFib fib::cMultimediaInfo::restoreXml ( const TiXmlElement *  pXmlElement)
virtual

This method restores this multimediainfo in the XML -format from an an TinyXml element.

Parameters:
pXmlNodea pointer to the TinyXml node the multimediainfo is stored in
Returns:
an integervalue with the errorvalue possible errorvalues are:
  • 0 loading successful
  • -1 loading error, invalid pXmlElement
  • -2 loading error, invalid data in pXmlElement
  • 1 loading warning, invalid data in pXmlElement, error could be corrected
  • 2 loading warning, invalid data in pXmlElement, maybe the loaded object is wrong
void fib::cMultimediaInfo::setDatabaseVersion ( unsignedLongFib  ulFibDbVersion)
Parameters:
ulFibVersionthe version of the Fib -database to set
void fib::cMultimediaInfo::setFibVersion ( unsignedLongFib  ulFibVersion)
Parameters:
ulFibVersionthe version of the Fib -multimedialanguage to set
virtual bool fib::cMultimediaInfo::storeXml ( ostream &  ostream) const
virtual

This method stores this multimediainfo in the XML -format into the given stream. example: <multimedia_info fib_version="1" db_version="0">

Parameters:
ostreamthe stream where this multimediainfo should be stored to
Returns:
true if this multimediainfo is stored, else false

Friends And Related Function Documentation

friend class cRoot
friend

Definition at line 60 of file cMultimediaInfo.h.


Member Data Documentation

cRoot* fib::cMultimediaInfo::masterRoot
protected

the pointer to the root object which uses this cMultimediaInfo

Definition at line 82 of file cMultimediaInfo.h.

unsignedLongFib fib::cMultimediaInfo::ulFibDbVersion
protected

The version of the Fib -database needed for the Fib -multimediaobject. The value 0 means the version of the Fib -database is irrelevant.

Definition at line 77 of file cMultimediaInfo.h.

unsignedLongFib fib::cMultimediaInfo::ulFibVersion
protected

The version of the Fib -multimedialanguage needed for the Fib -multimediaobject. The value 0 means the version of the Fib -multimedialanguage is irrelevant.

Definition at line 71 of file cMultimediaInfo.h.


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