![]() |
VR-Forces 4.0.4 Class Documentation
|
class DtCeResourceOperator: More...

Public Member Functions | |
| DtCeResourceOperator () | |
| default constructor | |
| DtCeResourceOperator (DtReaderWriterRegistry *parentRegistry) | |
| real constructor | |
| DtCeResourceOperator (const DtCeResourceOperator &orig, DtReaderWriterRegistry *parentRegistry=NULL) | |
| copy constructor | |
| virtual | ~DtCeResourceOperator () |
| destructor | |
| DtCeResourceOperator & | operator= (const DtCeResourceOperator &orig) |
| assignment operator | |
| virtual DtSimCondExpr * | clone (DtReaderWriterRegistry *parentRegistry=NULL) |
| clone operator | |
| virtual int | type () const |
| Returns DtCondExprResourceType (defined in condExprTypes.h). | |
| virtual void | setResource (const DtString &resource) |
| Set the resource to test. | |
| virtual const DtString & | resource () const |
| virtual void | setOper (const DtString &arg) |
| Set the relational operator type ("<=" "<" "=" "!=" ">=" ">"). | |
| virtual const DtString & | oper () const |
| virtual void | setComparisonValue (DtReal value) |
| Set the comparison value. | |
| virtual DtReal | comparisonValue () const |
| virtual void | setPercentFlag (bool arg) |
| Set the flag indicating that the comparison value is a percentage. | |
| virtual bool | percentFlag () const |
| virtual DtString | stringRep (int subExprIndex=DtSR_EXPR) const |
| Get a readable string representation of this level of this expression. | |
| virtual int | netRepSize () const |
| returns the size of the full network representation padded to an 8-byte boundary. | |
| virtual bool | setFromNet (const char *contentBuffer, unsigned contentSize) |
| Fills in the expression from the network buffer. | |
| virtual bool | setToNet () |
| Fills in the network buffer (created by base class conditional expression) with the conditional expression contents. | |
Static Public Member Functions | |
| static DtSimCondExpr * | creator () |
Protected Attributes | |
| DtRwString | myResource |
| DtRwString | myOper |
| aka myLeftValue | |
| DtRwReal | myComparisonValue |
| DtRwBoolean | myPercentFlag |
| aka myRightValue | |
class DtCeResourceOperator:
DtCeResourceOperator represents a relational operator (e.g. <, >, =) test between an entity's Resource value and a floating point constant.
default constructor
| DtCeResourceOperator::DtCeResourceOperator | ( | DtReaderWriterRegistry * | parentRegistry | ) |
real constructor
| DtCeResourceOperator::DtCeResourceOperator | ( | const DtCeResourceOperator & | orig, |
| DtReaderWriterRegistry * | parentRegistry = NULL |
||
| ) |
copy constructor
| virtual DtCeResourceOperator::~DtCeResourceOperator | ( | ) | [virtual] |
destructor
| DtCeResourceOperator& DtCeResourceOperator::operator= | ( | const DtCeResourceOperator & | orig | ) |
assignment operator
| virtual DtSimCondExpr* DtCeResourceOperator::clone | ( | DtReaderWriterRegistry * | parentRegistry = NULL | ) | [virtual] |
clone operator
Implements DtSimCondExpr.
| virtual int DtCeResourceOperator::type | ( | ) | const [virtual] |
Returns DtCondExprResourceType (defined in condExprTypes.h).
Implements DtSimCondExpr.
| virtual void DtCeResourceOperator::setResource | ( | const DtString & | resource | ) | [virtual] |
Set the resource to test.
| virtual const DtString& DtCeResourceOperator::resource | ( | ) | const [virtual] |
| virtual void DtCeResourceOperator::setOper | ( | const DtString & | arg | ) | [virtual] |
Set the relational operator type ("<=" "<" "=" "!=" ">=" ">").
| virtual const DtString& DtCeResourceOperator::oper | ( | ) | const [virtual] |
| virtual void DtCeResourceOperator::setComparisonValue | ( | DtReal | value | ) | [virtual] |
Set the comparison value.
| virtual DtReal DtCeResourceOperator::comparisonValue | ( | ) | const [virtual] |
| virtual void DtCeResourceOperator::setPercentFlag | ( | bool | arg | ) | [virtual] |
Set the flag indicating that the comparison value is a percentage.
| virtual bool DtCeResourceOperator::percentFlag | ( | ) | const [virtual] |
| virtual DtString DtCeResourceOperator::stringRep | ( | int | subExprIndex = DtSR_EXPR | ) | const [virtual] |
Get a readable string representation of this level of this expression.
The subExprIndex argument indicates which stringRep to get if this expression can have sub-expressions. Since a DtCeResourceOperator has no sub-expressions, it only returns a string representation if passed an index of DtSimCondExpr::DtSR_EXPR.
See the documentation for DtSimCondExpr::stringRep for more information.
Implements DtSimCondExpr.
| virtual int DtCeResourceOperator::netRepSize | ( | ) | const [virtual] |
returns the size of the full network representation padded to an 8-byte boundary.
Reimplemented from DtSimCondExpr.
| virtual bool DtCeResourceOperator::setFromNet | ( | const char * | contentBuffer, |
| unsigned | contentSize | ||
| ) | [virtual] |
Fills in the expression from the network buffer.
Reimplemented from DtSimCondExpr.
| virtual bool DtCeResourceOperator::setToNet | ( | ) | [virtual] |
Fills in the network buffer (created by base class conditional expression) with the conditional expression contents.
Reimplemented from DtSimCondExpr.
| static DtSimCondExpr* DtCeResourceOperator::creator | ( | ) | [static] |
DtRwString DtCeResourceOperator::myResource [protected] |
DtRwString DtCeResourceOperator::myOper [protected] |
aka myLeftValue
DtRwReal DtCeResourceOperator::myComparisonValue [protected] |
DtRwBoolean DtCeResourceOperator::myPercentFlag [protected] |
aka myRightValue