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::cVectorExtSubobject Class Reference

#include <cVectorExtSubobject.h>

Inheritance diagram for fib::cVectorExtSubobject:
Collaboration diagram for fib::cVectorExtSubobject:

List of all members.

Public Member Functions

 cVectorExtSubobject (unsignedIntFib iNumberOfElements, cFibElement *pDefiningExtSubobject=NULL)
 cVectorExtSubobject (cExtSubobject &definingExtSubobject)
 cVectorExtSubobject (const cVectorExtSubobject &vector, cFibElement *pDefiningFibElement=NULL)
 cVectorExtSubobject (const TiXmlElement *pXmlElement, intFib &outStatus, list< cFibVariable * > &liDefinedVariables)
 cVectorExtSubobject (cReadBits &iBitStream, intFib &outStatus, list< cFibVariable * > &liDefinedVariables, const cDomain *pInVectorDomain, const cDomain *pInDomainVariable, const unsignedIntFib uiInNumberOfElements=0)
virtual cVectorExtSubobjectcreateInstance (unsignedIntFib iNumberOfVectorElements, cFibElement *pDefiningElement=NULL) const
virtual cTypeElementgetElementType () const
virtual cDomainVectorBasisgetDomain () const
virtual cDomainVectorBasisgetStandardDomain () const
virtual cDomainVectorBasisgetValueDomain () const
virtual string getVectorType () const
virtual void setDefiningFibElement (cFibElement *pFibElement=NULL, bool bCheckDomains=true)
virtual void resize (unsigned int uiNumberOfVectorElements)
- Public Member Functions inherited from fib::cFibVector
virtual ~cFibVector ()
unsignedIntFib getNumberOfElements () const
virtual bool isVariable (unsignedIntFib iNumberElement) const
virtual bool isUsedVariable (const cFibVariable *variable) const
virtual set< cFibVariable * > getUsedVariables ()
virtual bool replaceVariable (cFibVariable *variableOld, cFibVariable *variableNew)
virtual doubleFib getValue (unsignedIntFib iNumberElement) const
virtual bool setValue (unsignedIntFib iNumberElement, doubleFib dValue)
virtual cFibVariablegetVariable (unsignedIntFib iNumberElement)
virtual bool setVariable (unsignedIntFib iNumberElement, cFibVariable *pVariable)
virtual cDomaingetDomain (unsignedIntFib iNumberElement) const
virtual cDomainSinglegetVariableDomain () const
cFibElementgetDefiningFibElement () const
virtual unsignedLongFib getCompressedSize () const
virtual unsignedLongFib getCompressedSize (const cDomainVectorBasis &valueVectorDomain, const cDomainSingle &variableDomain) const
virtual bool store (ostream &stream, char &cRestBits, unsigned char &uiRestBitPosition) const
virtual bool store (ostream &stream, char &cRestBits, unsigned char &uiRestBitPosition, const cDomainVectorBasis &valueVectorDomain, const cDomainSingle &variableDomain) const
virtual bool storeXml (ostream &stream) const
virtual bool equal (const cFibVector &vector) const
virtual bool operator== (const cFibVector &vector) const
bool operator!= (const cFibVector &vector) const
virtual cFibVectoroperator= (const cFibVector &vector)
virtual bool operator< (const cFibVector &vector) const

Additional Inherited Members

- Static Public Member Functions inherited from fib::cFibVector
static bool lowerVector (const cFibVector &vector1, const cFibVector &vector2)
- Protected Types inherited from fib::cFibVector
enum  eVectorType { VALUE, VARIABLE }
- Protected Member Functions inherited from fib::cFibVector
 cFibVector (unsignedIntFib iNumberOfVectorElements=1, cFibElement *definingFibElement=NULL)
 cFibVector (const cFibVector &vector, cFibElement *definingFibElement=NULL)
 cFibVector (const TiXmlElement *pXmlElement, intFib &outStatus, list< cFibVariable * > &liDefinedVariables)
 cFibVector (cReadBits &iBitStream, intFib &outStatus, list< cFibVariable * > &liDefinedVariables, const cDomain *pInVectorDomain, const cDomain *pInDomainVariable, const unsignedIntFib uiInNumberOfElements=0)
virtual cFibElementgetVariableUsingFibElement () const
virtual bool deleteVariable (cFibVariable *pVariable)
- Protected Attributes inherited from fib::cFibVector
vector< eVectorTypeliVectorType
vector< doubleFibliVectorValues
vector< cFibVariable * > liVectorVariable
cFibElementpDefiningFibElement

Detailed Description

Definition at line 47 of file cVectorExtSubobject.h.


Constructor & Destructor Documentation

fib::cVectorExtSubobject::cVectorExtSubobject ( unsignedIntFib  iNumberOfElements,
cFibElement pDefiningExtSubobject = NULL 
)

The constructor of the external subobject element vector.

Parameters:
iNumberOfElementsthe number of elements the vector should have
pDefiningElementthe Fib element which defines/ uses the external subobject element vector
fib::cVectorExtSubobject::cVectorExtSubobject ( cExtSubobject definingExtSubobject)

The constructor of the external subobject element vector.

Parameters:
definingExtSubobjectthe Fib external subobject element which defines/ uses the external subobject element vector
fib::cVectorExtSubobject::cVectorExtSubobject ( const cVectorExtSubobject vector,
cFibElement pDefiningFibElement = NULL 
)

The copy constructor of the vector.

Parameters:
vectorthe vector from which to copy the data
pDefiningFibElementthe Fib element which defines/ uses the new vector
fib::cVectorExtSubobject::cVectorExtSubobject ( const TiXmlElement *  pXmlElement,
intFib outStatus,
list< cFibVariable * > &  liDefinedVariables 
)

The constructor for restoring a vector from an TinyXml element.

Parameters:
pXmlNodea pointer to the TinyXml node the vector is stored in
outStatusAn reference to an integervalue where the errorvalue can be stored to. 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
liDefinedVariablesa list with the defined variables for the to restore vector, every variable should have it's number (the number under which it is stored) as it's value
fib::cVectorExtSubobject::cVectorExtSubobject ( cReadBits iBitStream,
intFib outStatus,
list< cFibVariable * > &  liDefinedVariables,
const cDomain pInVectorDomain,
const cDomain pInDomainVariable,
const unsignedIntFib  uiInNumberOfElements = 0 
)

This constructor restores a external subobject element vector from the stream where it is stored in the compressed Fib format.

Parameters:
iBitStreamthe stream where this vector is stored to in, because this stream is an cReadBits, any number of bits can be readed from it
outStatusAn reference to an integervalue where the errorvalue can be stored to. If the pointer is NULL no errorvalue will be given back. possible errorvalues are:
  • 0 loading successful
  • -1 loading error, invalid stream
  • -2 loading error, invalid data in stream
  • 1 loading warning, invalid data in stream, error could be corrected
  • 2 loading warning, invalid data in stream, maybe the loaded object is wrong
liDefinedVariablesa list with the defined variables for the to restore vector, every variable should have it's number (the number under which it is stored) as it's value
pInVectorDomainthe domain for this vector
pInDomainVariablethe domain for variables
uiInNumberOfElementsthe number of elements to restore, if not given or 0, it will be evalued by the number of elements of the given domain pInVectorDomain

Member Function Documentation

virtual cVectorExtSubobject* fib::cVectorExtSubobject::createInstance ( unsignedIntFib  iNumberOfVectorElements,
cFibElement pDefiningElement = NULL 
) const
virtual

This method creates an instance of this vector type.

Parameters:
iNumberOfVectorElementsnumber of elements in the vector
pDefiningElementthe Fib external subobject element which defines/ uses the external subobject element vector

Implements fib::cFibVector.

virtual cDomainVectorBasis* fib::cVectorExtSubobject::getDomain ( ) const
virtual

Returns a reference to the domain of the vector or the nullpointer NULL if no domain is defined for the vector. If the nullpointer NULL is returned the standarddomain is valid for the vector.

Returns:
a reference to the vectordomain of the vector

Reimplemented from fib::cFibVector.

virtual cTypeElement* fib::cVectorExtSubobject::getElementType ( ) const
virtual

Returns the type of the vector. You have to delete the returned object after usage.

Returns:
the type of the vector

Implements fib::cFibVector.

virtual cDomainVectorBasis* fib::cVectorExtSubobject::getStandardDomain ( ) const
virtual

Returns a reference to the standard domain of the vector. You have to delete the returned object after usage.

Returns:
a reference to the standard domain of the vector

Reimplemented from fib::cFibVector.

virtual cDomainVectorBasis* fib::cVectorExtSubobject::getValueDomain ( ) const
virtual

Returns a reference to the value domain of the vector or the nullpointer NULL if no value domain is defined for the vector. If the nullpointer NULL is returned the standarddomain is valid for the vector.

Returns:
a reference to the definitionarea of the vector

Reimplemented from fib::cFibVector.

virtual string fib::cVectorExtSubobject::getVectorType ( ) const
virtual
Returns:
the name for the type of the vector

Implements fib::cFibVector.

virtual void fib::cVectorExtSubobject::resize ( unsigned int  uiNumberOfVectorElements)
virtual

This method changes the number of Elements of this vector to the given number.

Parameters:
uiNumberOfVectorElementsthe number of elements this vector should have
virtual void fib::cVectorExtSubobject::setDefiningFibElement ( cFibElement pFibElement = NULL,
bool  bCheckDomains = true 
)
virtual

Sets the Fib-element which defines/ uses this vector. If the given pointer is the nullpointer (standardvalue), no Fib-element defines this vector.

Parameters:
pFibElementa pointer to the Fib-element which defines/ uses this vector
bCheckDomainsgetthe domains of the defining element and check the vectorelements with it

Reimplemented from fib::cFibVector.


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