![]() |
VR-Forces 4.0.4 Class Documentation
|
00001 /********************************************************************* 00002 ** Copyright (c) 1999 MaK Technologies, Inc. 00003 ** All rights reserved. 00004 *********************************************************************/ 00005 /********************************************************************* 00006 ** $RCSfile: ceAnd.h,v $ $Revision: 1.5 $ $State: Exp $ 00007 *********************************************************************/ 00008 00011 00012 #ifndef DtCeAnd_H_ 00013 #define DtCeAnd_H_ 00014 00015 #include "vrfutil/rdrWritr.h" 00016 #include "vrfutil/condExpr.h" 00017 00018 const char DtCeAndTypeName[] = "AND"; 00019 00020 00024 struct DtNetCeAnd 00025 { 00026 DtNetU16 myLeftCondExprType; 00027 DtNetU16 myRightCondExprType; 00028 DtNetU16 myPadding; 00029 DtNetU16 myPadding2; 00030 }; 00031 00037 #include "vrfutil/vrfutilDefines.h" 00038 class DT_DLL_vrfutil DtCeAnd : public DtSimCondExpr 00039 { 00040 public: 00041 00043 DtCeAnd(); 00044 00046 DtCeAnd(DtReaderWriterRegistry* parentRegistry); 00047 00049 DtCeAnd(const DtCeAnd& orig, 00050 DtReaderWriterRegistry* parentRegistry = NULL); 00051 00053 virtual ~DtCeAnd(); 00054 00056 DtCeAnd& operator=(const DtCeAnd& orig); 00057 00059 virtual DtSimCondExpr* clone(DtReaderWriterRegistry* parentRegistry = NULL); 00060 00063 virtual int type() const; 00064 00067 virtual void setLeftCondExpr(DtSimCondExpr* leftExpr); 00068 virtual DtSimCondExpr* leftCondExpr(); 00069 virtual const DtSimCondExpr* leftCondExpr() const; 00070 00073 virtual void setRightCondExpr(DtSimCondExpr* rightExpr); 00074 virtual DtSimCondExpr* rightCondExpr(); 00075 virtual const DtSimCondExpr* rightCondExpr() const; 00076 00079 virtual int subExprCount() const; 00086 virtual DtSimCondExpr* subExpr(int index); 00087 00098 virtual DtString stringRep(int subExprIndex = DtSR_EXPR) const; 00099 00100 00104 virtual DtlObjPtr getData(DtlObjPtr args, const DtFilename& searchPath, 00105 const DtVariableBindingsList& variableBindings); 00106 00109 virtual int netRepSize() const; 00110 00112 virtual bool setFromNet(const char* contentBuffer, 00113 unsigned contentSize); 00114 00117 virtual bool setToNet(); 00118 00119 static DtSimCondExpr * creator(); 00120 00121 protected: 00122 DtSimCondExpr* myLeftCondExpr; 00123 DtSimCondExpr* myRightCondExpr; 00124 }; 00125 00126 #endif