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

#include <cIf.h>

Inheritance diagram for fib::cIf:
Collaboration diagram for fib::cIf:

List of all members.

Public Member Functions

 cIf (const cCondition &inCondition, cFibElement *pInUnderobjectTrueCase=NULL, cFibElement *pInUnderobjectFalseCase=NULL, cFibElement *pInSuperiorElement=NULL)
 cIf (const cIf &ifElement)
 ~cIf ()
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 *variable, edDirection direction=ED_POSITION) const
virtual set< cFibVariable * > getUsedVariables (edDirection direction=ED_POSITION)
virtual bool replaceVariable (cFibVariable *variableOld, cFibVariable *variableNew)
virtual cFibElementcopyElement (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 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 bool hasUnderAllObjects () const
virtual cFibElementcutElement (const char cType='u', const unsignedIntFib elementPoint=0, bool bAbsolute=false, bool bCheckVariables=true)
cConditiongetCondition () const
bool setCondition (const cCondition &condition)
cFibElementgetTrueCase ()
bool setTrueCase (cFibElement *fibObjectTrue, bool bDeleteOld=true)
cFibElementgetFalseCase ()
bool setFalseCase (cFibElement *fibObjectFalse, 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 isRemovableElement (const char cType='u', const unsignedIntFib elementPoint=0, bool bAbsolute=false, bool bCheckVariables=true) const
virtual intFib moveLimbElement (const char cType='u', const unsignedIntFib elementPoint=0, const intFib iHowfar=1, bool bAbsolute=false)
bool isBranch () const
- Public Member Functions inherited from fib::cFibElement
virtual ~cFibElement ()
virtual cFibElementgetSuperiorFibElement ()
virtual cFibElementgetNextFibElement ()
virtual cFibElementgetNextFibElement (char cType)
virtual cFibElementgetConstFibElement (longFib lNumber, bool bAbsolute=false) const
virtual cFibElementgetConstFibElement (char cType, longFib lNumber, bool bAbsolute=false) const
cFibElementgetFibElement (longFib lNumber, bool bAbsolute=false)
cFibElementgetFibElement (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< unsignedIntFibelementPointToObjectPoints (const char cType, const unsignedIntFib elementPoint, bool bAbsolute=false) const
virtual list< unsignedIntFibgetObjectPointsForElement (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 bool isMovable () const
virtual cFibElementclone () const
virtual cFibElementcopy (const unsignedIntFib iObjectPoint=0) const
virtual bool equalValuesSet (const cFibVariable *variableOwn, const cFibElement &fibElement, const cFibVariable *variable) const
virtual bool store (ostream &stream) const
virtual cRootgetSuperiorRootElement ()
virtual const cRootgetSuperiorRootElement () const
virtual list< longFibgetAllRootObjectIdentifiers () const
virtual list< longFibgetAllDatabaseObjectIdentifiers () const
virtual cRootgetRootObject (longFib lIdentifier)
virtual list< longFibgetAllAccessibleRootObjectIdentifiers () const
virtual cRootgetAccessibleRootObject (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

 cIf (const TiXmlElement *pXmlElement, intFib &outStatus, list< cFibVariable * > &liDefinedVariables)
 cIf (cReadBits &iBitStream, intFib &outStatus, list< cFibVariable * > &liDefinedVariables, const cDomains &validDomains, cRoot *pNextRoot)
virtual bool storeBit (ostream &stream, char &cRestBits, unsigned char &uiRestBitPosition) const
virtual cFibElementcopyInternal (const unsignedIntFib iObjectPoint=0) const
void syncSubobjects ()
- 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 cFibElementupdateValues (cFibElement *previosFibElement=NULL, cFibElement *pNextArm=NULL)
virtual unsignedIntFib getNumberOfObjectPoint (unsignedIntFib uINumberOfStartFibElement) const
virtual list< unsignedIntFibelementPointToObjectPoints (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 ()
intFib moveLimbElementUp (const char cType= 'u', const unsignedIntFib elementPoint=0, const unsignedIntFib uiHowfar=1, bool bAbsolute=false)
cFibElementgetMasterRoot ()
cFibElementgetMasterRoot () const

Private Attributes

cConditionpCondition
cFibElementpFibObjectTrue
cFibElementpFibObjectFalse

Friends

class cFibElement
class cFibBranch

Additional Inherited Members

- Protected Attributes inherited from fib::cFibBranch
list< cFibElement * > fibUnderObjects
- Protected Attributes inherited from fib::cFibElement
cFibElementpSuperiorElement
cFibElementpPreviousFibElement
cFibElementpNextFibElement
cRootpNextRootElement
unsignedIntFib uINumberOfFibElement

Detailed Description

Definition at line 57 of file cIf.h.


Constructor & Destructor Documentation

fib::cIf::cIf ( const cCondition inCondition,
cFibElement pInUnderobjectTrueCase = NULL,
cFibElement pInUnderobjectFalseCase = NULL,
cFibElement pInSuperiorElement = NULL 
)

parameterconstructor

Parameters:
inConditionthe condition this function should have
pInUnderobjectTrueCasethe fib-element, which is the underobject of this fib-element for the true case; (it also stands next in the order of fib-elements)
pInUnderobjectFalseCasethe fib-element, which is the underobject of this fib-element for the false case
pInSuperiorElementthe fib-element, in which this if-element is an underobject
fib::cIf::cIf ( const cIf ifElement)

copyconstructor This copyconstructor constructs a copy of the given if-element. It dosn't copy other fib-elements than the given, even if ther are in the if-element.

Parameters:
ifElementthe if-element to copy
fib::cIf::cIf ( const TiXmlElement *  pXmlElement,
intFib outStatus,
list< cFibVariable * > &  liDefinedVariables 
)
protected

The constructor for restoring a if-object from an TinyXml element.

Parameters:
pXmlNodea pointer to the TinyXml node wher the fib-object 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 fib-element, every variable should have it's number (the number under which it is stored) as it's value
fib::cIf::cIf ( cReadBits iBitStream,
intFib outStatus,
list< cFibVariable * > &  liDefinedVariables,
const cDomains validDomains,
cRoot pNextRoot 
)
protected

This constructor restores a if-object from the stream where it is stored in the compressed fib-format. This method is for internal use only.

Parameters:
iBitStreamthe stream wher the if-object 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 fib-element, every variable should have it's number (the number under which it is stored) as it's value
validDomainsthe domains valid for restoring the fib-elements
pNextRootthe next higher root-element for the to restore fib-elements, or the last restored root-element
fib::cIf::~cIf ( )

destructor


Member Function Documentation

virtual cFibElement* fib::cIf::copyElement ( const char  cType = 'u',
const unsignedIntFib  elementPoint = 0,
bool  bAbsolute = false 
) const
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.

See also:
getType()
Parameters:
cTypethe type of the fib-element to copy
elementPointthe number of the fib-element, in the order of Fib -elements of the given type cType, to copy
bAbsoluteif the lNumber is an absolute value for the wool fib -object
Returns:
the copy of the fib-element

Implements fib::cFibElement.

virtual cFibElement* fib::cIf::copyInternal ( const unsignedIntFib  iObjectPoint = 0) const
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 helpmethod for the copy method. It dosn't update the structural information of the created fib -object.

Parameters:
iObjectPointthe number of the connected object to copy; the standartvalue is 0 for coping the complet actual object
Returns:
the copy of the connected object or NULL if non such exists

Implements fib::cFibElement.

virtual cFibElement* fib::cIf::cutElement ( const char  cType = 'u',
const unsignedIntFib  elementPoint = 0,
bool  bAbsolute = false,
bool  bCheckVariables = true 
)
virtual

This method cuts the Fib-element on the specified position. This works like removeElement(), except that the removed element is returned.

See also:
isDeletableElement()
removeElement()
getType()
Parameters:
cTypethe type of the Fib-element to cut
elementPointthe number of the Fib-element, in the order of Fib-elements of the given type cType, to cut
bAbsoluteif the elementPoint is an absolute value for the wool Fib-object
bCheckVariablesif 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
Returns:
the pointer to the cuted Fib-element or NULL, if the Fib -element couldn't cut

Reimplemented from fib::cFibBranch.

virtual bool fib::cIf::equal ( const cFibElement fibObject) const
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.

Parameters:
fibObjectthe fib-object to which this fib-object should be equal
Returns:
true if this fib-object is equal to the given fib-object, else false

Reimplemented from fib::cFibBranch.

virtual bool fib::cIf::equalElement ( const cFibElement fibElement) const
virtual

This method checks if the given fib-element is equal to this fib -element. The underobjects arn't compared, not even ther count is compared. Used variables can be others.

Parameters:
fibElementthe fib-element to which this fib-element should be equal
Returns:
true if this fib-element is equal to the given fib -object, else false

Implements fib::cFibElement.

virtual bool fib::cIf::evalueObject ( iEvaluePosition evaluePosition,
const unsignedIntFib  objectPoint,
list< cVectorProperty > &  liVecProperties 
) const
virtual

This method evaluades the fib -object.

Parameters:
evaluePositiona 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;
See also:
iEvaluePosition
Parameters:
objectPointthe object point in the order of true partobjects to evalue
liVecPropertiesa list with the property vectors which should be global for the evalued object
Returns:
if the evalueation was successfull true, else false

Implements fib::cFibElement.

virtual bool fib::cIf::evalueObject ( iEvalueFibElement evalueFibElement,
const unsignedIntFib  objectPoint,
list< cVectorProperty > &  liVecProperties,
const list< char > &  liCFibElementTyps 
)
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.

Parameters:
evalueFibElementa 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;
See also:
iEvalueFibElement
Parameters:
objectPointthe object point in the order of true partobjects to evalue
liVecPropertiesa list with the property vectors which should be global for the evalued object
liCFibElementTypsa list with the type chars (
See also:
getType) of the fib-elements to return
Returns:
if the evalueation was successfull true, else false

Implements fib::cFibElement.

virtual unsignedLongFib fib::cIf::getCompressedSize ( ) const
virtual

This method evaluades the size of the fib-object in bits in the compressed file form. The optionalpart field of function -elements will be ignored.

See also:
store()
Returns:
the size of the fib-object in bits in the compressed form

Implements fib::cFibElement.

cCondition* fib::cIf::getCondition ( ) const
Returns:
the condition of this if-element
cFibElement* fib::cIf::getFalseCase ( )
Returns:
the false case of this if-element or NULL, if non exist
virtual unsignedLongFib fib::cIf::getTimeNeed ( unsignedLongFib  lMaxTime = 0) const
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.

See also:
evalueObject()
Parameters:
lMaxTimethe maximum time for the evaluation, the returned exceed this value; the value 0 stands for infinity, so the evaluation won't be stoped
Returns:
a value for the time needed to evalue the object

Implements fib::cFibElement.

cFibElement* fib::cIf::getTrueCase ( )
Returns:
the true case of this if-element or NULL, if non exist
virtual char fib::cIf::getType ( ) const
virtual
See also:
getTypeName
Returns:
a character for the typ of the fib-element Types are:
  • u: element of unknown typ
  • p: point
  • l: list-element
    • y: property
    • c: comment
    • a: area
    • f: function
    • i: if-condition
    • o: extern object element
    • s: extern subobject element
    • v: set-element
    • m: matrix element
    • r: root-element

Implements fib::cFibElement.

virtual set<cFibVariable*> fib::cIf::getUsedVariables ( edDirection  direction = ED_POSITION)
virtual

This method returns all variables used in the given direction from this fib-element.

See also:
cFibVariable
isUsedVariable()
isDefinedVariable()
Parameters:
directionthe direction from this fib-element, in which the variable should be used; standardvalue is ED_POSITION so yust this fib-element will be checked
Returns:
the set with all variables used in the given direction from this fib-element

Reimplemented from fib::cFibBranch.

virtual bool fib::cIf::hasUnderAllObjects ( ) const
virtual

This method checks, if all Fib -elements of this Fib -object have the underobjects they need to be correct.

Returns:
true if all Fib -elements of this Fib -object have the underobjects they need to be correct, else false

Reimplemented from fib::cFibBranch.

virtual bool fib::cIf::insertElement ( cFibElement fibElement,
const char  cType = 'u',
const unsignedIntFib  elementPoint = 0,
bool  bAbsolute = false,
bool  bCheckVariables = true 
)
virtual

This method inserts the given Fib -element fibElement on the specified position. The replaced Fib -element will be the underobject of the inserted Fib -element fibElement.

See also:
getNumberOfElement()
getNumberOfElements()
getType()
Parameters:
cTypethe type of the Fib -element insted of which the given Fib -element fibElement should be inserted
elementPointthe 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
fibElementthe Fib -element to insert
bAbsoluteif the lNumber is an absolute value for the wool fib -object
bCheckVariablesif 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
Returns:
true if the Fib -element fibElement was inserted, else false

Reimplemented from fib::cFibBranch.

virtual bool fib::cIf::insertObjectInElement ( cFibElement fibObject,
const char  cType = 'u',
const unsignedIntFib  elementPoint = 0,
bool  first = true,
bool  bAbsolute = false 
)
virtual

This method inserts the given Fib-object fibObject on the specified position. On the specified position a listelement will be inserted, with the old Fib-object and the given Fib-object fibObject as its underobjects.

See also:
getNumberOfElement()
getNumberOfElements()
overwriteObjectWithObject()
getType()
Parameters:
cTypethe type of the Fib -element, on which position the given Fib-object fibObject should be inserted
elementPointthe 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
fibObjectthe Fib-object to insert
firstif true, the inserted object will be the first underobject of the new listelement
bAbsoluteif the lNumber is an absolute value for the wool fib -object
Returns:
true if the Fib-object fibObject was inserted, else false

Reimplemented from fib::cFibBranch.

virtual bool fib::cIf::isUsedVariable ( const cFibVariable variable,
edDirection  direction = ED_POSITION 
) const
virtual

This method checks if the given variable is used in the given direction from this fib-element.

See also:
cFibVariable
isDefinedVariable()
Parameters:
variablethe variable to check if it is used
directionthe direction from this fib-element, in which the variable should be used; standardvalue is ED_POSITION so yust this fib-element will be checked
Returns:
true if the variable is used, else false

Reimplemented from fib::cFibBranch.

virtual bool fib::cIf::isValidFibElement ( ) const
virtual

This method checks, if this Fib-element is an valid Fib-element.

Returns:
true if this Fib-element is an valid Fib-element, else false

Reimplemented from fib::cFibBranch.

virtual bool fib::cIf::overwriteObjectWithObject ( cFibElement fibObject,
const char  cType = 'u',
const unsignedIntFib  elementPoint = 0,
bool  bDeleteOld = true,
bool  bAbsolute = false 
)
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.

See also:
getNumberOfElement()
getNumberOfElements()
insertObjectInElement()
getType()
Parameters:
cTypethe type of the Fib -element, on which position the given Fib-object fibObject should be inserted
elementPointthe 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
fibObjectthe Fib-object to insert
bDeleteOldif true, delete the old Fib-object from the memory
bAbsoluteif the elementPoint is an absolute value for the wool fib -object
Returns:
true if the old Fib-object was overwritten and the given Fib-object fibObject was inserted, else false

Reimplemented from fib::cFibBranch.

virtual bool fib::cIf::replaceVariable ( cFibVariable variableOld,
cFibVariable variableNew 
)
virtual

This method replace the variable variableOld with the variable variableNew in the object.

See also:
cFibVariable
isUsedVariable()
isDefinedVariable()
Parameters:
variableOldthe variable to replace
variableNewthe variable with which the variable variableOld is to replace
Returns:
true if the variable variableOld is replaced with variableNew, else false

Reimplemented from fib::cFibBranch.

bool fib::cIf::setCondition ( const cCondition condition)

This method sets the given condition as the condition of this if-element. (The given condition is copied befor it is set.)

Parameters:
conditiona reference to the to set condition
Returns:
true if the condition was set, else false
bool fib::cIf::setFalseCase ( cFibElement fibObjectFalse,
bool  bDeleteOld = true 
)

This method sets the given Fib-object as the false case for this this if-element.

Parameters:
fibObjectFalsethe new false case Fib-object to set
bDeleteOldif true, delete the old Fib-object from the memory
Returns:
true if the false case was set else false
bool fib::cIf::setTrueCase ( cFibElement fibObjectTrue,
bool  bDeleteOld = true 
)

This method sets the given Fib-object as the true case for this this if-element.

Parameters:
fibObjectTruethe new true case Fib-object to set
bDeleteOldif true, delete the old Fib-object from the memory
Returns:
true if the true case was set, else false
virtual bool fib::cIf::storeBit ( ostream &  stream,
char &  cRestBits,
unsigned char &  uiRestBitPosition 
) const
protectedvirtual

This method stores this fib-object in the compressed Fib -format into the given stream. It is needed becouse 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. Beware: You need to call storeBit() of the root -elements with the domain for the function or the function will not be readebel.

See also:
store
Parameters:
streamthe stream where this fib-object should be stored to
cRestBitsthe not yet writen bits which should be stored
uiRestBitPositionthe number of bits in the cRestBits which should be writen respectively containing valid information
Returns:
true if this fib-object is stored, else false

Implements fib::cFibElement.

virtual bool fib::cIf::storeXml ( ostream &  stream) const
virtual

This method stores this fib-object in the XML -format into the given stream.

Parameters:
streamthe stream where this fib-object should be stored to
Returns:
true if this fib-object is stored, else false

Implements fib::cFibElement.

void fib::cIf::syncSubobjects ( )
protected

This method syncronises the underobjects of this cIf-class with the underobjectslist fibUnderObjects of the cFibBranch class.


Friends And Related Function Documentation

friend class cFibBranch
friend

Reimplemented from fib::cFibElement.

Definition at line 60 of file cIf.h.

friend class cFibElement
friend

Reimplemented from fib::cFibBranch.

Definition at line 59 of file cIf.h.


Member Data Documentation

cCondition* fib::cIf::pCondition
private

The condition of the if-element.

Definition at line 67 of file cIf.h.

cFibElement* fib::cIf::pFibObjectFalse
private

The false case for this if-element. If the condition is false the subobject for the false case will be evalued,

See also:
getFalseCase()
setFalseCase()

Definition at line 85 of file cIf.h.

cFibElement* fib::cIf::pFibObjectTrue
private

The true case for this if-element. If the condition is true the subobject for the true case will be evalued,

See also:
getTrueCase()
setTrueCase()

Definition at line 76 of file cIf.h.


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