The Fib multimedia system
Fib is a system for storing multimedia data (like images or films).
|
#include <cVectorExtSubobject.h>
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 cVectorExtSubobject * | createInstance (unsignedIntFib iNumberOfVectorElements, cFibElement *pDefiningElement=NULL) const |
virtual cTypeElement * | getElementType () const |
virtual cDomainVectorBasis * | getDomain () const |
virtual cDomainVectorBasis * | getStandardDomain () const |
virtual cDomainVectorBasis * | getValueDomain () 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 cFibVariable * | getVariable (unsignedIntFib iNumberElement) |
virtual bool | setVariable (unsignedIntFib iNumberElement, cFibVariable *pVariable) |
virtual cDomain * | getDomain (unsignedIntFib iNumberElement) const |
virtual cDomainSingle * | getVariableDomain () const |
cFibElement * | getDefiningFibElement () 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 cFibVector & | operator= (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 cFibElement * | getVariableUsingFibElement () const |
virtual bool | deleteVariable (cFibVariable *pVariable) |
Protected Attributes inherited from fib::cFibVector | |
vector< eVectorType > | liVectorType |
vector< doubleFib > | liVectorValues |
vector< cFibVariable * > | liVectorVariable |
cFibElement * | pDefiningFibElement |
Definition at line 47 of file cVectorExtSubobject.h.
fib::cVectorExtSubobject::cVectorExtSubobject | ( | unsignedIntFib | iNumberOfElements, |
cFibElement * | pDefiningExtSubobject = NULL |
||
) |
The constructor of the external subobject element vector.
iNumberOfElements | the number of elements the vector should have |
pDefiningElement | the Fib element which defines/ uses the external subobject element vector |
fib::cVectorExtSubobject::cVectorExtSubobject | ( | cExtSubobject & | definingExtSubobject | ) |
The constructor of the external subobject element vector.
definingExtSubobject | the 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.
vector | the vector from which to copy the data |
pDefiningFibElement | the 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.
pXmlNode | a pointer to the TinyXml node the vector is stored in |
outStatus | An reference to an integervalue where the errorvalue can be stored to. possible errorvalues are:
|
liDefinedVariables | a 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.
iBitStream | the stream where this vector is stored to in, because this stream is an cReadBits, any number of bits can be readed from it |
outStatus | An 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:
|
liDefinedVariables | a 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 |
pInVectorDomain | the domain for this vector |
pInDomainVariable | the domain for variables |
uiInNumberOfElements | the number of elements to restore, if not given or 0, it will be evalued by the number of elements of the given domain pInVectorDomain |
|
virtual |
This method creates an instance of this vector type.
iNumberOfVectorElements | number of elements in the vector |
pDefiningElement | the Fib external subobject element which defines/ uses the external subobject element vector |
Implements fib::cFibVector.
|
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.
Reimplemented from fib::cFibVector.
|
virtual |
Returns the type of the vector. You have to delete the returned object after usage.
Implements fib::cFibVector.
|
virtual |
Returns a reference to the standard domain of the vector. You have to delete the returned object after usage.
Reimplemented from fib::cFibVector.
|
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.
Reimplemented from fib::cFibVector.
|
virtual |
Implements fib::cFibVector.
|
virtual |
This method changes the number of Elements of this vector to the given number.
uiNumberOfVectorElements | the number of elements this vector should have |
|
virtual |
Sets the Fib-element which defines/ uses this vector. If the given pointer is the nullpointer (standardvalue), no Fib-element defines this vector.
pFibElement | a pointer to the Fib-element which defines/ uses this vector |
bCheckDomains | getthe domains of the defining element and check the vectorelements with it |
Reimplemented from fib::cFibVector.