Main Page   Class Hierarchy   Data Structures   File List   Data Fields   Globals  

CTVar Class Reference

Variable for expression Implemented in: tvu_calculate.cpp. More...

#include <tvu_calculate.h>

Inheritance diagram for CTVar::

CTObject

Public Methods

 CTVar ()
 Contructors/Destructors. More...

 ~CTVar ()
 DEFINE_ID_FUNCTIONS (CTVar, CTObject, CLASSNAME_VAR_ID, CLASSNAME_VAR) public
virtual TBOOL SaveExpression (LPCTFile pFile, TINT Marge)
 Save the expression. More...

virtual LPCTObject GetValue ()
 Get the result of the expression. More...

virtual CTObjectCalculate (TINT iOperator, CTObject *Object)
 Calculate the mathematical operators: +, -, *, / and the comparing operators: =, <, <=, >, >=. In this case, the returned value is an object of CTInt. More...

virtual TBOOL SetObject (LPCTObject Object)
 Attach the object. More...

virtual TBOOL Build (CTList Objects, TLPCSTR lpCreateClass=TNULL)
 Find the corresponding object in the list and attach. More...

virtual TBOOL IsWellBuilt (TBOOL bTestOnly=TFALSE)
 verify if the object if well built. More...

virtual TBOOL IsContains (TLPCSTR ObjectName)
CTVar& operator= (CTVar &Object)
 Operations. More...


Static Public Methods

CTObjectHolds (CTList pObjects)
 Coded functions Assign an object for a variable. More...


Data Fields

CTString m_Name
 Name of the corresponding object. More...

LPCTObject m_pObject
 Pointer to the variable. More...


Detailed Description

Variable for expression Implemented in: tvu_calculate.cpp.


Constructor & Destructor Documentation

CTVar::CTVar ( )
 

Contructors/Destructors.


Member Function Documentation

TBOOL CTVar::Build ( CTList Objects,
TLPCSTR lpCreateClass = TNULL ) [virtual]
 

Find the corresponding object in the list and attach.

CTObject * CTVar::Calculate ( TINT iOperator,
CTObject * Object ) [virtual]
 

Calculate the mathematical operators: +, -, *, / and the comparing operators: =, <, <=, >, >=. In this case, the returned value is an object of CTInt.

Reimplemented from CTObject.

LPCTObject CTVar::GetValue ( ) [virtual]
 

Get the result of the expression.

Reimplemented from CTObject.

CTObject * CTVar::Holds ( CTList pObjects ) [static]
 

Coded functions Assign an object for a variable.

TBOOL CTVar::IsWellBuilt ( TBOOL bTestOnly = TFALSE ) [virtual]
 

verify if the object if well built.

TBOOL CTVar::SaveExpression ( LPCTFile pFile,
TINT Marge ) [virtual]
 

Save the expression.

Reimplemented from CTObject.

TBOOL CTVar::SetObject ( LPCTObject Object ) [inline, virtual]
 

Attach the object.

00100 { return (m_pObject = Object) != TNULL; };

CTVar & CTVar::operator= ( CTVar & Object )
 

Operations.


Field Documentation

CTString CTVar::m_Name
 

Name of the corresponding object.

LPCTObject CTVar::m_pObject
 

Pointer to the variable.


The documentation for this class was generated from the following file:
Generated at Wed Aug 6 15:59:01 2003 for TVU's libraries for video surveillance: by doxygen1.2.8.1 written by Dimitri van Heesch, © 1997-2001