VR-Forces 4.0.4 Class Documentation
include/vrfutil/ceOr.h
Go to the documentation of this file.
00001 /*********************************************************************
00002 ** Copyright (c) 1999 MaK Technologies, Inc.
00003 ** All rights reserved.
00004 *********************************************************************/
00005 /*********************************************************************
00006 ** $RCSfile: ceOr.h,v $ $Revision: 1.5 $ $State: Exp $
00007 *********************************************************************/
00008 
00011 
00012 #ifndef DtCeOr_H_
00013 #define DtCeOr_H_
00014 
00015 #include "vrfutil/rdrWritr.h"
00016 #include "vrfutil/condExpr.h"
00017 
00018 const char DtCeOrTypeName[] = "OR";
00019 
00020 
00024 struct DtNetCeOr
00025 {
00026    DtNetU16 myLeftCondExprType;   
00027    DtNetU16 myRightCondExprType;  
00028    DtNetU16 myPadding;            
00029    DtNetU16 myPadding1;           
00030 };
00031 
00038 #include "vrfutil/vrfutilDefines.h"
00039 class DT_DLL_vrfutil DtCeOr : public DtSimCondExpr
00040 {
00041 public:
00042 
00044    DtCeOr();
00045 
00047    DtCeOr(DtReaderWriterRegistry* parentRegistry);
00048 
00050    DtCeOr(const DtCeOr& orig,
00051       DtReaderWriterRegistry* parentRegistry = NULL);
00052 
00054    virtual ~DtCeOr();
00055 
00057    DtCeOr& operator=(const DtCeOr& orig);
00058 
00060    virtual DtSimCondExpr* clone(DtReaderWriterRegistry* parentRegistry = NULL);
00061 
00064    virtual int type() const;
00065 
00068    virtual void setLeftCondExpr(DtSimCondExpr* leftExpr);
00069    virtual DtSimCondExpr* leftCondExpr();
00070    virtual const DtSimCondExpr* leftCondExpr() const;
00071 
00074    virtual void setRightCondExpr(DtSimCondExpr* rightExpr);
00075    virtual DtSimCondExpr* rightCondExpr();
00076    virtual const DtSimCondExpr* rightCondExpr() const;
00077 
00080    virtual int subExprCount() const;
00087    virtual DtSimCondExpr* subExpr(int index);
00088 
00099    virtual DtString stringRep(int subExprIndex = DtSR_EXPR) const;
00100 
00101 
00105    virtual DtlObjPtr getData(DtlObjPtr args, const DtFilename& searchPath,
00106       const DtVariableBindingsList& variableBindings);
00107 
00110    virtual int netRepSize() const;
00111 
00113    virtual bool setFromNet(const char* contentBuffer, 
00114       unsigned contentSize);
00115 
00118    virtual bool setToNet();
00119 
00120    static DtSimCondExpr * creator();
00121 
00122 protected:
00123    DtSimCondExpr* myLeftCondExpr;
00124    DtSimCondExpr* myRightCondExpr;
00125 };
00126 
00127 #endif

Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)