The Fib multimedia system
Fib is a system for storing multimedia data (like images or films).
|
#include <cExtObject.h>
Public Member Functions | |
cExtObject (const longFib lInIdentifier, const cVectorExtObject &vecInInputValues, cFibElement *pInSuperiorElement=NULL) | |
cExtObject (const longFib lInIdentifier, const unsignedIntFib uiNumberOfInputValues=0, cFibElement *pInSuperiorElement=NULL) | |
cExtObject (const cExtObject &extObjElement) | |
virtual | ~cExtObject () |
virtual char | getType () const |
virtual bool | isValidFibElement () 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 | replaceVariable (cFibVariable *pVariableOld, cFibVariable *pVariableNew) |
virtual bool | isUsedVariable (const cFibVariable *variable, edDirection direction=ED_POSITION) const |
virtual set< cFibVariable * > | getUsedVariables (edDirection direction=ED_POSITION) |
virtual bool | isMovable () const |
virtual cFibElement * | copyElement (const char cType='u', const unsignedIntFib elementPoint=0, bool bAbsolute=false) const |
virtual bool | equal (const cFibElement &fibObject) const |
virtual bool | equalElement (const cFibElement &fibelement) const |
virtual bool | equalValuesSet (const cFibVariable *variableOwn, const cFibElement &fibelement, const cFibVariable *variable) const |
virtual bool | storeXml (ostream &stream) 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 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) |
longFib | getIdentifier () const |
void | setIdentifier (const longFib lInIdentifier) |
cVectorExtObject * | getInputVector () |
const cVectorExtObject * | getInputVector () const |
unsignedIntFib | getNumberOfInputValues () const |
void | setNumberOfInputValues (const unsignedIntFib uiNumberOfInputValues) |
unsignedIntFib | getNumberOfSubobjects () const |
void | setNumberOfSubobjects (const unsignedIntFib uiNumberOfSubobjects, bool bDeleteOld=true) |
cFibElement * | getSubobject (const unsignedIntFib uiNumberSubobject) |
bool | setSubobject (const unsignedIntFib uiNumberSubobject, cFibElement *pFibObject, bool bDeleteOld=true) |
unsignedIntFib | getNumberOfOutputVariables (const unsignedIntFib uiNumberOfSubobject) const |
unsignedIntFib | setNumberOfOutputVariables (const unsignedIntFib uiNumberOfSubobject, const unsignedIntFib uiNumberOfVariables) |
vector< cFibVariable * > | getOutputVariables (const unsignedIntFib uiNumberOfSubobject) |
cFibVariable * | getOutputVariable (const unsignedIntFib uiNumberOfSubobject, const unsignedIntFib uiNumberOfOutputVariable) |
bool | addSubobject (cFibElement *pSubobject, unsignedIntFib uiPosition=0, const unsignedIntFib uiNumberOfOutVar=0) |
bool | deleteSubobject (unsignedIntFib uiSubobjectNumber, bool bDeleteOld=true) |
Public Member Functions inherited from fib::cFibBranch | |
virtual | ~cFibBranch () |
virtual unsignedIntFib | getNumberOfElements (char cType='u') const |
virtual unsignedIntFib | getNumberOfMovePoints () const |
virtual unsignedIntFib | getNumberOfObjectPoints () const |
virtual unsignedIntFib | objectPointToElementPoint (const unsignedIntFib uiObjectPoint, bool bAbsolute=false) const |
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 |
bool | isBranch () 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 | 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 | isLimb () const |
virtual bool | isLeaf () const |
Protected Member Functions | |
cExtObject (const TiXmlElement *pXmlElement, intFib &outStatus, list< cFibVariable * > &liDefinedVariables) | |
cExtObject (cReadBits &iBitStream, intFib &outStatus, list< cFibVariable * > &liDefinedVariables, const cDomains &validDomains, cRoot *pNextRoot) | |
virtual bool | storeBit (ostream &stream, char &cRestBits, unsigned char &uiRestBitPosition) const |
virtual unsignedIntFib | enumerateVariablesForStoring (unsignedIntFib uiLastVariableNumber=0) |
virtual void | cutConnectionsTo (const cFibElement *pFibElement) |
void | syncSubobjects () |
virtual cExtObject * | copyInternal (const unsignedIntFib iObjectPoint=0) const |
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::cFibBranch | |
cFibBranch (cFibElement *pInSuperiorElement=NULL, cFibElement *pInPreviousFibElement=NULL, cFibElement *pInNextFibElement=NULL, list< cFibElement * > liFibUnderObjects=list< cFibElement * >()) | |
cFibBranch (const cFibBranch &fibBranchElement) | |
virtual bool | registerNewFibElement (cFibElement *newFibElement, unsignedIntFib uINumberOfFibElement, bool bDirectionUp) |
virtual bool | registerNewFibObject (cFibElement *newFibObject, unsignedIntFib uILowerNumberOfFibElements, unsignedIntFib uIUpperNumberOfFibElements, bool bDirectionUp) |
virtual void | cutConnections (edDirection direction=ED_ALL) |
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 list< cFibElement * > | getAllFibElementsFromPosition (char cType, edDirection direction, unsignedLongFib lNumberOfMaxReturnedElements) |
Protected Member Functions inherited from fib::cFibElement | |
cFibElement (cFibElement *pInSuperiorElement=NULL, cFibElement *pInPreviousFibElement=NULL, cFibElement *pInNextFibElement=NULL) | |
cFibElement (const cFibElement &fibElement) | |
virtual bool | updateAllValues () |
intFib | moveLimbElementUp (const char cType= 'u', const unsignedIntFib elementPoint=0, const unsignedIntFib uiHowfar=1, bool bAbsolute=false) |
cFibElement * | getMasterRoot () |
cFibElement * | getMasterRoot () const |
Private Attributes | |
longFib | lIdentifier |
cVectorExtObject | vecInputValues |
vector< pair< cFibElement *, vector< cFibVariable * > > > | vecSubobjects |
Friends | |
class | cFibElement |
class | cFibBranch |
class | cRoot |
Additional Inherited Members | |
Protected Attributes inherited from fib::cFibBranch | |
list< cFibElement * > | fibUnderObjects |
Protected Attributes inherited from fib::cFibElement | |
cFibElement * | pSuperiorElement |
cFibElement * | pPreviousFibElement |
cFibElement * | pNextFibElement |
cRoot * | pNextRootElement |
unsignedIntFib | uINumberOfFibElement |
Definition at line 64 of file cExtObject.h.
fib::cExtObject::cExtObject | ( | const longFib | lInIdentifier, |
const cVectorExtObject & | vecInInputValues, | ||
cFibElement * | pInSuperiorElement = NULL |
||
) |
parameterconstructor
lInIdentifier | The identifier of the external Fib-object this external element stands for. |
vecInInputValues | the vector with the input values of this external element |
pInSuperiorElement | the Fib-element in which this Fib-element is an subobject |
fib::cExtObject::cExtObject | ( | const longFib | lInIdentifier, |
const unsignedIntFib | uiNumberOfInputValues = 0 , |
||
cFibElement * | pInSuperiorElement = NULL |
||
) |
parameterconstructor
lInIdentifier | The identifier of the external Fib-object this external element stands for. |
uiNumberOfInputValues | the number of input values of this external element |
pInSuperiorElement | the Fib-element in which this Fib-element is an subobject |
fib::cExtObject::cExtObject | ( | const cExtObject & | extObjElement | ) |
copyconstructor This copyconstructor constructs a copy of the given external object element. It dosn't copy other Fib-elements than the given, even if ther are in the external object element.
extObjElement | the external object element to copy |
|
protected |
The constructor for restoring a external object element 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 errorvalues 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 method restores a external object objects from the stream where it is stored in the compressed Fib-format. This method is for internal use only.
iBitStream | the stream where this external object objects 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 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
bool fib::cExtObject::addSubobject | ( | cFibElement * | pSubobject, |
unsignedIntFib | uiPosition = 0 , |
||
const unsignedIntFib | uiNumberOfOutVar = 0 |
||
) |
This method adds the given subobject to the subobjects of this extern object element. This will fail if:
pSubobject | a pointer to the subobject to add; the object will not be copied, so don't delete it |
uiPosition | the position on which the subobject is to insert in this extern object element subobject vector (counting begins with 1), if 0 or greater the number of subobjects the subobject will be inserted to the end of the subobject list |
uiNumberOfOutVar | the number of output variables of the subobject to add should have |
|
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 standartvalue is 0 for coping the complet actual object |
Implements fib::cFibElement.
|
protectedvirtual |
This method cuts the connections of this Fib-element to the given Fib-element.
pFibElement | the Fib-element to which to cut the connection |
|
virtual |
This method cuts the Fib-element on the specified position. This works like removeElement(), except that the removed element is returned.
cType | the type of the Fib-element to cut |
elementPoint | the number of the Fib-element, in the order of Fib-elements of the given type cType, to cut |
bAbsolute | if the elementPoint is an absolute value for the wool Fib-object |
bCheckVariables | if true (standardvalue) it will be checked if the variables the Fib-element defines are needed, else the Fib-element will be removed even if its variables are needed elsewher |
Reimplemented from fib::cFibBranch.
bool fib::cExtObject::deleteSubobject | ( | unsignedIntFib | uiSubobjectNumber, |
bool | bDeleteOld = true |
||
) |
This method deletes the uiSubobjectNumber'th subobject in this extern object element.
uiSubobjectNumber | the number of the subobject in the subobject vector to delete |
bDeleteOld | if true the subobject will be removed from the memory, else yust the reference will be removed from this extern object element;default is true |
|
protectedvirtual |
This method sets each variable, which is defined over an leaf, to an uniqe integer number greater than the given number uiLastVariableNumber. While storing this number can be used to identify the variable.
uiLastVariableNumber | the number which was last used, this means also is the greatest used, in this object |
Reimplemented from fib::cFibBranch.
|
virtual |
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 |
Reimplemented from fib::cFibBranch.
|
virtual |
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 |
Implements fib::cFibElement.
|
virtual |
This method checks if the given Fib-element sets the variable to the same values as this Fib-element.
variableOwn | a pointer to a defined variable in this Fib-element, it is compared to the equivalent variable pVariable in the given Fib-element fibelement |
fibelement | the Fib-element to which this Fib-element should be compared |
variable | a pointer to a defined variable in the other Fib-element fibelement |
Reimplemented from fib::cFibElement.
|
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 pointelement is given back. The type chars for pointelements 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. The optionalpart field of external object elements will not be ignored.
Implements fib::cFibElement.
|
protectedvirtual |
This method returns all variables defined in the given direction from this Fib-element. This is for intern use to get the correct data from getDefinedVariables() without pCallingFibElement..
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 |
pCallingFibElement | the Fib-Element which called this method |
Reimplemented from fib::cFibBranch.
longFib fib::cExtObject::getIdentifier | ( | ) | const |
cVectorExtObject* fib::cExtObject::getInputVector | ( | ) |
const cVectorExtObject* fib::cExtObject::getInputVector | ( | ) | const |
unsignedIntFib fib::cExtObject::getNumberOfInputValues | ( | ) | const |
unsignedIntFib fib::cExtObject::getNumberOfOutputVariables | ( | const unsignedIntFib | uiNumberOfSubobject | ) | const |
This method returns the number of output variables of the uiNumberOfSubobject extern subobject in this external object element, or 0 if the subobject dosn't exists.
uiNumberOfSubobject | the number of the subobject for which the number of output variables is to be returned |
unsignedIntFib fib::cExtObject::getNumberOfSubobjects | ( | ) | const |
cFibVariable* fib::cExtObject::getOutputVariable | ( | const unsignedIntFib | uiNumberOfSubobject, |
const unsignedIntFib | uiNumberOfOutputVariable | ||
) |
This method returns a pointer to the uiNumberOfInputVariable'th output variable of the uiNumberOfSubobject'th subobject of this external object element.
uiNumberOfSubobject | the number of the subobject for which the output variable should be returned |
uiNumberOfOutputVariable | the number of the output variable of the uiNumberOfSubobject'th subobject to return |
vector< cFibVariable* > fib::cExtObject::getOutputVariables | ( | const unsignedIntFib | uiNumberOfSubobject | ) |
This method returns a vector with the pointers to the output variables of the uiNumberOfSubobject'th subobject.
uiNumberOfSubobject | the number of the subobject for which the output variables should be returned |
cFibElement* fib::cExtObject::getSubobject | ( | const unsignedIntFib | uiNumberSubobject | ) |
uiNumberSubobject | the number of the subobject to return, |
|
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::cFibBranch.
|
virtual |
This method inserts the given Fib-element fibelement on the specified position. The replaced Fib-element will be the subobject of the inserted Fib-element fibelement.
cType | the type of the Fib-element insted of which the given Fib-element fibelement should be inserted |
elementPoint | the number of the Fib-element, in the order of Fib-elements of the given type cType, in which position the given Fib-element fibelement should be inserted; if 0 the given fibelement will be inserted under this Fib-element |
fibelement | the Fib-element to insert |
bAbsolute | if the lNumber is an absolute value for the wool Fib-object |
bCheckVariables | if true (standardvalue) it will be checked if the variables the Fib-element defines are needed, else the Fib-element will be removed even if its variables are needed elsewher |
Reimplemented from fib::cFibBranch.
|
virtual |
This method inserts the given Fib-object pFibObject on the specified position. In limb elements on the specified position a list element will be inserted, with the old Fib-object and the given Fib-object pFibObject as its subobjects.
cType | the type of the Fib-element, on which position the given Fib-object fibObject should be inserted |
elementPoint | the number of the Fib-element, in the order of Fib-elements of the given type cType, on which position the given Fib-object fibObject should be inserted |
fibObject | the Fib-object to insert |
first | if true, the inserted object will be the first subobject of the new list element |
bAbsolute | if the lNumber is an absolute value for the wool Fib-object |
Reimplemented from fib::cFibBranch.
|
protectedvirtual |
This method checks if the given variable is defined in the given direction from this Fib-element. This is for intern use to get the correct data from isDefinedVariable() without pCallingFibElement.
pVariable | the variable to check if it is defined |
direction | the direction from this Fib-element, in which the variable should be defined; standardvalue is ED_POSITION so yust this Fib-element will be checked |
pCallingFibElement | the Fib-Element which called this method |
Reimplemented from fib::cFibBranch.
|
virtual |
Reimplemented from fib::cFibElement.
|
virtual |
This method checks if the given variable is used in the given direction from this fib-element.
variable | 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::cFibBranch.
|
virtual |
This method checks, if this Fib-element is an valid Fib-element.
Reimplemented from fib::cFibBranch.
|
virtual |
This method moves a Fib-limb -element (cFibLimb) on the specified position over iHowfar Fib-elements. Moving is stoped if an invalid Fib-object would result (e.g. no Fib -element can be moved over an Fib-elements that defines a variable the moved Fib-element uses). Moving an Fib-element into an list element will result in an list element with the moved element in everyone of it's subobjects.
cType | the type of the Fib-element to move |
elementPoint | the number of the Fib-element, in the order of Fib-elements of the given type cType, to move |
iHowfar | the number of Fib-elements over which the to move Fib-element should be moved; if this value is positiv the Fib -element will be moved over Fib-elements it contains else over Fib-elements it is contained in |
bAbsolute | if the elementPoint is an absolute value for the wool Fib-object |
Reimplemented from fib::cFibBranch.
|
virtual |
This method overwrites the Fib-object on specified position with the given Fib-object fibObject. The Fib-object on specified position will be replaced with the given Fib-object fibObject.
cType | the type of the Fib-element, on which position the given Fib-object fibObject should be inserted |
elementPoint | the number of the Fib-element, in the order of Fib-elements of the given type cType, on which position the given Fib-object fibObject should be inserted |
fibObject | the Fib-object to insert |
bDeleteOld | if true, delete the old Fib-object from the memory |
bAbsolute | if the elementPoint is an absolute value for the wool Fib-object |
Reimplemented from fib::cFibBranch.
|
virtual |
This method replace the variable pVariableOld with the variable pVariableNew in the object.
pVariableOld | the variable to replace |
pVariableNew | the variable with which the variable variableOld is to be replace |
Reimplemented from fib::cFibBranch.
void fib::cExtObject::setIdentifier | ( | const longFib | lInIdentifier | ) |
This method sets identifier of the external Fib-object this external element stands for.
lInIdentifier | The to set identifier of the external Fib-object this external element stands for. |
void fib::cExtObject::setNumberOfInputValues | ( | const unsignedIntFib | uiNumberOfInputValues | ) |
This method sets the number of input values, this external object element has, to the given number.
uiNumberOfInputValues | the number of input values this external object element should have |
unsignedIntFib fib::cExtObject::setNumberOfOutputVariables | ( | const unsignedIntFib | uiNumberOfSubobject, |
const unsignedIntFib | uiNumberOfVariables | ||
) |
This method sets the number of output variables of the uiNumberOfSubobject'th extern subobject in this external object element to the given value uiNumberOfVariables.
uiNumberOfSubobject | the number of the subobject for which the number of output variables is to be set |
uiNumberOfVariables | the number of output variables the uiNumberOfSubobject'th subobject of this external object element should have |
void fib::cExtObject::setNumberOfSubobjects | ( | const unsignedIntFib | uiNumberOfSubobjects, |
bool | bDeleteOld = true |
||
) |
This method sets the number of subobjects, this external object element have, to the given number. It will create or delete subobjects as necessary, wher created subobjects are NULL with 0 output variables. The delete process will beginn on the end of the subobject list and stop if enough subobject are deleted.
uiNumberOfSubobjects | the number of subobjects this external object element should have |
bDeleteOld | if true, delete the old subobject from the memory |
bool fib::cExtObject::setSubobject | ( | const unsignedIntFib | uiNumberSubobject, |
cFibElement * | pFibObject, | ||
bool | bDeleteOld = true |
||
) |
This method sets the iNumberSubobject'th subobject of this external object element to the given subobject. It will create new subobjects if ther are less than uiNumberSubobject subobjects (
uiNumberSubobject | the number of the subobject to set (counting from 1) |
pFibObject | the pointer to the uiNumberVariable'th subobject this external object should have |
bDeleteOld | if true, delete the old subobject from the memory |
|
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.
|
protected |
This method syncronises the subobjects of this cExtObject-class with the subobjects list
|
friend |
Reimplemented from fib::cFibElement.
Definition at line 67 of file cExtObject.h.
|
friend |
Reimplemented from fib::cFibBranch.
Definition at line 66 of file cExtObject.h.
|
friend |
Reimplemented from fib::cFibElement.
Definition at line 68 of file cExtObject.h.
|
private |
The identifier of the external Fib-object this external element stands for.
Definition at line 76 of file cExtObject.h.
|
private |
The vector with the input values of the external object element.
Definition at line 81 of file cExtObject.h.
|
private |
The list with the subobjects the external Fib-object can use. The list element pair elements are: first: a pointer to the subobject to use second: a list with the pointers to the output variables this extern object element defines for the subobject
Definition at line 101 of file cExtObject.h.