The Fib multimedia system
Fib is a system for storing multimedia data (like images or films).
|
#include <cExtSubobject.h>
Public Member Functions | |
cExtSubobject (unsignedIntFib uiInNumberOfSubobject, vector< cFibVariable * > vecInOutputVariables=vector< cFibVariable * >(), cFibElement *pInSuperiorElement=NULL) | |
cExtSubobject (const cExtSubobject &extObjectElement) | |
virtual | ~cExtSubobject () |
virtual bool | isValidFibElement () const |
virtual char | getType () const |
virtual bool | evalueObject (iEvaluePosition &evaluePosition, const unsignedIntFib objectPoint, list< cVectorProperty > &liVecProperties) const |
virtual bool | evalueObject (iEvalueFibElement &evalueFibElement, const unsignedIntFib objectPoint, list< cVectorProperty > &liVecProperties, const list< char > &liCFibElementTyps) |
virtual unsignedLongFib | getTimeNeed (unsignedLongFib lMaxTime=0) const |
virtual unsignedLongFib | getCompressedSize () const |
virtual bool | isUsedVariable (const cFibVariable *pVariable, edDirection direction=ED_POSITION) const |
virtual set< cFibVariable * > | getUsedVariables (edDirection direction=ED_POSITION) |
virtual bool | replaceVariable (cFibVariable *pVariableOld, cFibVariable *pVariableNew) |
virtual cFibElement * | copyElement (const char cType='u', const unsignedIntFib elementPoint=0, bool bAbsolute=false) const |
virtual bool | storeXml (ostream &stream) const |
unsignedIntFib | getNumberSubobject () const |
bool | setNumberSubobject (const unsignedIntFib iInSubobjectNumber) |
unsignedIntFib | getNumberOfOutputVariables () const |
vector< cFibVariable * > | getOutputVariables () |
bool | setOutputVariables (vector< cFibVariable * > vecOutputValues) |
cFibVariable * | getOutputVariable (const unsignedIntFib uiVariableNumber) |
bool | setOutputVariable (const unsignedIntFib uiVariableNumber, cFibVariable *pOutputVariable) |
Public Member Functions inherited from fib::cFibLeaf | |
virtual unsignedIntFib | getNumberOfElements (char cType='u') const |
virtual unsignedIntFib | getNumberOfMovePoints () const |
virtual bool | isMovable () const |
virtual unsignedIntFib | getNumberOfObjectPoints () const |
virtual unsignedIntFib | objectPointToElementPoint (const unsignedIntFib uiObjectPoint, bool bAbsolute=false) const |
virtual bool | insertElement (cFibElement *fibElement, const char cType='u', const unsignedIntFib elementPoint=0, bool bAbsolute=false, bool bCheckVariables=true) |
virtual bool | insertObjectInElement (cFibElement *fibObject, const char cType='u', const unsignedIntFib elementPoint=0, bool first=true, bool bAbsolute=false) |
virtual bool | overwriteObjectWithObject (cFibElement *fibObject, const char cType='u', const unsignedIntFib elementPoint=0, bool bDeleteOld=true, bool bAbsolute=false) |
virtual bool | removeObject (const unsignedIntFib objectPoint, bool bDeleteOld=true, bool bAbsolute=false) |
virtual bool | hasUnderAllObjects () const |
virtual bool | isRemovableElement (const char cType='u', const unsignedIntFib elementPoint=0, bool bAbsolute=false, bool bCheckVariables=true) const |
virtual cFibElement * | cutElement (const char cType='u', const unsignedIntFib elementPoint=0, bool bAbsolute=false, bool bCheckVariables=true) |
virtual intFib | moveLimbElement (const char cType='u', const unsignedIntFib elementPoint=0, const intFib iHowfar=1, bool bAbsolute=false) |
virtual bool | equal (const cFibElement &fibObject) const |
virtual bool | isLeaf () const |
Public Member Functions inherited from fib::cFibElement | |
virtual | ~cFibElement () |
virtual cFibElement * | getSuperiorFibElement () |
virtual cFibElement * | getNextFibElement () |
virtual cFibElement * | getNextFibElement (char cType) |
virtual cFibElement * | getConstFibElement (longFib lNumber, bool bAbsolute=false) const |
virtual cFibElement * | getConstFibElement (char cType, longFib lNumber, bool bAbsolute=false) const |
cFibElement * | getFibElement (longFib lNumber, bool bAbsolute=false) |
cFibElement * | getFibElement (char cType, longFib lNumber, bool bAbsolute=false) |
list< cFibElement * > | getAllFibElements (char cTypeBasis='u', longFib lNumber=1, char cType='u', edDirection direction=ED_ALL, unsignedLongFib lNumberOfMaxReturnedElements=0, bool bAbsolute=false) |
bool | evalueObjectSimple (iEvaluePosition &evaluePosition, const unsignedIntFib objectPoint=0) const |
bool | evalueObjectSimple (iEvalueFibElement &evalueFibElement, const unsignedIntFib objectPoint=0, const list< char > liCFibElementTyps=list< char >()) |
virtual bool | isDefinedVariable (const cFibVariable *variable, edDirection direction=ED_POSITION) const |
virtual list< cFibVariable * > | getDefinedVariables (edDirection direction=ED_HIGHER) |
bool | variablesAreDefined (const set< cFibVariable * > &setVariable, edDirection direction=ED_HIGHER) const |
virtual unsignedIntFib | getNumberOfElement (bool bOfType=false) const |
virtual unsignedIntFib | getNumberOfMovePoint () const |
virtual unsignedIntFib | getNumberOfObjectPoint () const |
virtual unsignedIntFib | typeElementPointToElementPoint (const char cType, const unsignedIntFib elementPoint, bool bAbsolute=false) const |
virtual list< unsignedIntFib > | elementPointToObjectPoints (const char cType, const unsignedIntFib elementPoint, bool bAbsolute=false) const |
virtual list< unsignedIntFib > | getObjectPointsForElement (const cFibElement *pFibElement, bool bAbsolute=false) const |
virtual bool | removeElement (const char cType='u', const unsignedIntFib elementPoint=0, bool bAbsolute=false, bool bCheckVariables=true) |
virtual cFibElement * | clone () const |
virtual cFibElement * | copy (const unsignedIntFib iObjectPoint=0) const |
virtual bool | equalElement (const cFibElement &fibElement) const =0 |
virtual bool | equalValuesSet (const cFibVariable *variableOwn, const cFibElement &fibElement, const cFibVariable *variable) const |
virtual bool | store (ostream &stream) const |
virtual cRoot * | getSuperiorRootElement () |
virtual const cRoot * | getSuperiorRootElement () const |
virtual list< longFib > | getAllRootObjectIdentifiers () const |
virtual list< longFib > | getAllDatabaseObjectIdentifiers () const |
virtual cRoot * | getRootObject (longFib lIdentifier) |
virtual list< longFib > | getAllAccessibleRootObjectIdentifiers () const |
virtual cRoot * | getAccessibleRootObject (longFib lIdentifier) |
virtual cDomains | getValidDomains () const |
virtual cDomains | getValidValueDomains () const |
virtual unsignedIntFib | getNumberOfDimensions () const |
virtual unsignedIntFib | getDimensionMapping (unsignedIntFib iDimensionNumber) const |
virtual bool | isBranch () const |
virtual bool | isLimb () const |
Protected Member Functions | |
cExtSubobject (const TiXmlElement *pXmlElement, intFib &outStatus, list< cFibVariable * > &liDefinedVariables) | |
cExtSubobject (cReadBits &iBitStream, intFib &outStatus, list< cFibVariable * > &liDefinedVariables, const cDomains &validDomains, cRoot *pNextRoot) | |
virtual bool | storeBit (ostream &stream, char &cRestBits, unsigned char &uiRestBitPosition) const |
virtual cFibElement * | copyInternal (const unsignedIntFib iObjectPoint=0) const |
virtual bool | equalInternal (const cFibElement &fibObject, map< const cRoot *, const cRoot * > &mapEqualRootObjects, map< const cFibElement *, const cFibElement * > &mapEqualDefinedVariables, const bool bCheckExternalObjects) const |
virtual bool | equalElementInternal (const cFibElement &fibElement, map< const cRoot *, const cRoot * > &mapEqualRootObjects, map< const cFibElement *, const cFibElement * > &mapEqualDefinedVariables, const bool bCheckExternalObjects) const |
virtual cFibElement * | getVariableUsingFibElement () const |
virtual bool | deleteVariable (cFibVariable *pVariable) |
Protected Member Functions inherited from fib::cFibLeaf | |
cFibLeaf (cFibElement *pInSuperiorElement=NULL, cFibElement *pInPreviousFibElement=NULL, cFibElement *pInNextFibElement=NULL) | |
cFibLeaf (const cFibLeaf &fibLeafElement) | |
virtual bool | registerNewFibElement (cFibElement *newFibElement, unsignedIntFib uINumberOfFibElement, bool bDirectionUp) |
virtual bool | registerNewFibObject (cFibElement *newFibObject, unsignedIntFib uILowerNumberOfFibElements, unsignedIntFib uIUpperNumberOfFibElements, bool bDirectionUp) |
virtual cFibElement * | updateValues (cFibElement *previosFibElement=NULL, cFibElement *pNextArm=NULL) |
virtual unsignedIntFib | getNumberOfObjectPoint (unsignedIntFib uINumberOfStartFibElement) const |
virtual list< unsignedIntFib > | elementPointToObjectPoints (const cFibElement *referenceFibObject, const unsignedIntFib uiLastObjectPoint) const |
virtual unsignedIntFib | enumerateVariablesForStoring (unsignedIntFib uiLastVariableNumber=0) |
virtual list< cFibElement * > | getAllFibElementsFromPosition (char cType, edDirection direction, unsignedLongFib lNumberOfMaxReturnedElements) |
virtual bool | isDefinedVariableInternal (const cFibVariable *pVariable, edDirection direction=ED_POSITION, const cFibElement *pCallingFibElement=NULL) const |
virtual list< cFibVariable * > | getDefinedVariablesInternal (edDirection direction=ED_HIGHER, const cFibElement *pCallingFibElement=NULL) |
Protected Member Functions inherited from fib::cFibElement | |
cFibElement (cFibElement *pInSuperiorElement=NULL, cFibElement *pInPreviousFibElement=NULL, cFibElement *pInNextFibElement=NULL) | |
cFibElement (const cFibElement &fibElement) | |
virtual bool | updateAllValues () |
virtual void | cutConnections (edDirection direction=ED_ALL) |
intFib | moveLimbElementUp (const char cType= 'u', const unsignedIntFib elementPoint=0, const unsignedIntFib uiHowfar=1, bool bAbsolute=false) |
cFibElement * | getMasterRoot () |
cFibElement * | getMasterRoot () const |
Private Attributes | |
unsignedIntFib | uiNumberOfSubobject |
vector< cFibVariable * > | vecOutputValues |
Friends | |
class | cFibElement |
Definition at line 66 of file cExtSubobject.h.
fib::cExtSubobject::cExtSubobject | ( | unsignedIntFib | uiInNumberOfSubobject, |
vector< cFibVariable * > | vecInOutputVariables = vector< cFibVariable * >() , |
||
cFibElement * | pInSuperiorElement = NULL |
||
) |
parameterconstructor
uiInNumberOfSubobject | the number of the subobject to call |
vecInOutputVariables | the vector with the output variables or the subobject to call |
pInSuperiorElement | the Fib element in which this external object element is an subobject |
fib::cExtSubobject::cExtSubobject | ( | const cExtSubobject & | extObjectElement | ) |
copyconstructor This copyconstructor constructs a copy of the given external object element. It dosn't copy other Fib elements than the given.
extObjectElement | the external object element to copy |
|
protected |
The constructor for restoring a pointelement from an TinyXml element.
pXmlNode | a pointer to the TinyXml node the Fib object is stored in |
outStatus | An reference to an integervalue where the errorvalue can be stored to. possible error values are:
|
liDefinedVariables | a list with the defined variables for the to restore Fib element, every variable should have it's number (the number under which it is stored) as it's value |
|
protected |
This constructor restores a pointelement from the stream where it is stored in the compressed Fib format. This method is for internal use only.
iBitStream | the stream where this pointelement is stored 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 error values are:
|
liDefinedVariables | a list with the defined variables for the to restore Fib element, every variable should have it's number (the number under which it is stored) as it's value |
validDomains | the domains valid for restoring the Fib elements |
pNextRoot | the next higher root-element for the to restore Fib elements, or the last restored root-element |
|
virtual |
destructor
|
virtual |
This method copies the Fib element on the specified position. Variables which are not defined in the Fib element but used don't change ther reference.
cType | the type of the Fib element to copy |
elementPoint | the number of the Fib element, in the order of Fib elements of the given type cType, to copy |
bAbsolute | if the lNumber is an absolute value for the wool Fib object |
Implements fib::cFibElement.
|
protectedvirtual |
This method copies the connected object with the given number in the order of connected objects. For this every Fib element, beginning from this Fib element, that is part of the connected object, will be copied. Variables which are not defined in the connected object but used don't change ther reference. It is an help method for the copy method. It dosn't update the structural information of the created Fib object.
iObjectPoint | the number of the connected object to copy; the standart value is 0 for coping the complet actual object |
Implements fib::cFibElement.
|
protectedvirtual |
This method deletes all occurencies of the given variable from this element. So the variable is not used anymore by this element. Beware: This element has to be unregistered (call unregisterUsingElement() ) at the pVariable seperatly. Do this directly befor or after calling this method.
pVariable | the variable which is to delete from this element |
Implements fib::iVariableUser.
|
protectedvirtual |
This method checks if the given Fib element is equal to this fib -element. The subobjects arn't compared, not even ther count is compared. Used variables can be others.
fibElement | the Fib element to which this Fib element should be equal |
mapEqualRootObjects | the root objects of this object that wher already checked as equal map entries: key: the root-element of this Fib object that was checked value: the to the key correspondending root-element of the fibObject that was checked and which is equal to the key root-element (it is empty if bCheckExternalObjects == false) |
mapEqualDefinedVariables | the Fib elements that defines variables and are equal; map entries: key: the Fib element of this Fib object that was checked value: the to the key correspondending Fib element of the fibObject that was checked and which sets its defined variables to the same values as the key Fib element |
bCheckExternalObjects | if true the external objects of cExtObject will be compared |
|
protectedvirtual |
This method checks if the given Fib object is equal to this Fib object. Variables can be others, but must be defined and used in equivalent Fib elements.
fibObject | the Fib object to which this Fib object should be equal |
mapEqualRootObjects | the root objects of this object that wher already checked as equal map entries: key: the root-element of this Fib object that was checked value: the to the key correspondending root-element of the fibObject that was checked and which is equal to the key root-element (it is empty if bCheckExternalObjects == false) |
mapEqualDefinedVariables | the Fib elements that defines variables and are equal; map entries: key: the Fib element of this Fib object that was checked value: the to the key correspondending Fib element of the fibObject that was checked and which sets its defined variables to the same values as the key Fib element |
bCheckExternalObjects | if true the external objects of |
|
virtual |
This method evaluades the Fib object.
evaluePosition | a reference to the object with the evaluePosition() method to evalue /store the positions and ther properties; everytime a point (to evalue) is reached in the evaluation, this method is called with the position and the properties of the point; |
objectPoint | the object point in the order of true partobjects to evalue |
liVecProperties | a list with the property vectors which should be global for the evalued object |
Implements fib::cFibElement.
|
virtual |
This method evaluades the Fib object. Evertime a Fib elements, with a type of the given type chars in liCFibElementTyps, is reached while evaluation, it is given back with the properties which it has. Ever point element is given back. The type chars for point elements don't need to be in the list liCFibElementTyps.
evalueFibElement | a reference to the object with the evalueElement() method to evalue /store the Fib elements and ther properties; everytime a Fib element (with one of the type given in liCFibElementTyps) is reached in the evaluation, the method evalueElement() of this objects is called with the Fib element and the properties of the Fib element; |
objectPoint | the object point in the order of true partobjects to evalue |
liVecProperties | a list with the property vectors which should be global for the evalued object |
liCFibElementTyps | a list with the type chars ( |
Implements fib::cFibElement.
|
virtual |
This method evaluades the size of the Fib object in bits in the compressed file form.
Implements fib::cFibElement.
unsignedIntFib fib::cExtSubobject::getNumberOfOutputVariables | ( | ) | const |
unsignedIntFib fib::cExtSubobject::getNumberSubobject | ( | ) | const |
cFibVariable* fib::cExtSubobject::getOutputVariable | ( | const unsignedIntFib | uiVariableNumber | ) |
This method returns the uiVariableNumber'th output variable of the vector with the output variables of this object respectively the input variables for the external subobject to call
uiVariableNumber | the number of the output variable to set |
vector< cFibVariable * > fib::cExtSubobject::getOutputVariables | ( | ) |
|
virtual |
This method evaluades a value for the time needed to evalue the object. This value should not exceed lMaxTime, if the value for the time is greater than lMaxTime the evaluation will be stopt and lMaxTime returned. If lMaxTime is 0 (for infinity) the evaluation won't be stoped, this is the standard case.
lMaxTime | the maximum time for the evaluation, the returned exceed this value; the value 0 stands for infinity, so the evaluation won't be stoped |
Implements fib::cFibElement.
|
virtual |
Implements fib::cFibElement.
|
virtual |
This method returns all variables used in the given direction from this Fib element.
direction | the direction from this Fib element, in which the variable should be used; standardvalue is ED_POSITION so yust this Fib element will be checked |
Reimplemented from fib::cFibLeaf.
|
protectedvirtual |
Implements fib::iVariableUser.
|
virtual |
This method checks if the given variable is used in the given direction from this Fib element.
pVariable | the variable to check if it is used |
direction | the direction from this Fib element, in which the variable should be used; standardvalue is ED_POSITION so yust this Fib element will be checked |
Reimplemented from fib::cFibLeaf.
|
virtual |
This method checks, if this Fib element is an valid Fib element.
Reimplemented from fib::cFibLeaf.
|
virtual |
This method replace the variable variableOld with the variable variableNew in the object.
pVariableOld | the variable to replace |
pVariableNew | the variable with which the variable variableOld is to replace |
Implements fib::cFibElement.
bool fib::cExtSubobject::setNumberSubobject | ( | const unsignedIntFib | iInSubobjectNumber | ) |
This method sets the number of the subobject to call (
iInSubobjectNumber | the number of the subobject to set |
bool fib::cExtSubobject::setOutputVariable | ( | const unsignedIntFib | uiVariableNumber, |
cFibVariable * | pOutputVariable | ||
) |
This method sets the uiVariableNumber'th output variable of the vector with the output variables of this object respectively the input variables for the external subobject to call
uiVariableNumber | the number of the output variable to set |
pOutputVariable | the uiVariableNumber'th output variable of the vector with the output variables |
bool fib::cExtSubobject::setOutputVariables | ( | vector< cFibVariable * > | vecOutputValues | ) |
This method sets the vector with the output variables of this object respectively the input variables for the external subobject to call (
vecOutputValues | the vector with the output variables of this object respectively the input variables for the external subobject to call ( |
|
protectedvirtual |
This method stores this Fib object in the compressed Fib format into the given stream. It is needed because the stream can yust store byts but the size of Fib elements can be any number of bits. Because of that ther have to be a possibility to exchange the missing bits betwean the Fib elements.
stream | the stream where this Fib object should be stored to |
cRestBits | the not yet writen bits which should be stored |
uiRestBitPosition | the number of bits in the cRestBits which should be writen respectively containing valid information |
Implements fib::cFibElement.
|
virtual |
This method stores this Fib object in the XML -format into the given stream.
stream | the stream where this Fib object should be stored to |
Implements fib::cFibElement.
|
friend |
Definition at line 70 of file cExtSubobject.h.
|
private |
The number of the subobject to call.
Definition at line 79 of file cExtSubobject.h.
|
private |
The vector with the output variables for the subobject to call.
Definition at line 90 of file cExtSubobject.h.