VR-Forces 4.0.4 Class Documentation
include/vrfutil/ceConstant.h
Go to the documentation of this file.
00001 /*********************************************************************
00002 ** Copyright (c) 1999 MaK Technologies, Inc.
00003 ** All rights reserved.
00004 *********************************************************************/
00005 /*********************************************************************
00006 ** $RCSfile: ceConstant.h,v $ $Revision: 1.6 $ $State: Exp $
00007 *********************************************************************/
00008 
00011 
00012 #ifndef DtCeConstant_H_
00013 #define DtCeConstant_H_
00014 
00015 #include "vrfutil/rdrWritr.h"
00016 #include "vrfutil/condExpr.h"
00017 #include <vlutil/vlNetTypes.h>
00018 
00019 const char DtCeTrueTypeName[] = "True";
00020 const char DtCeFalseTypeName[] = "False";
00021 
00022 
00025 struct DtNetCeConstant
00026 {
00027   DtNetBoolean myValue;
00028   DtNetU8      myPadding;    
00029   DtNetU8      myPadding1;   
00030   DtNetU8      myPadding2;   
00031   DtNetU8      myPadding3;   
00032   DtNetU8      myPadding4;   
00033   DtNetU8      myPadding5;   
00034   DtNetU8      myPadding6;   
00035   DtNetU8      myPadding7;   
00036 };
00037 
00041 #include "vrfutil/vrfutilDefines.h"
00042 class DT_DLL_vrfutil DtCeConstant : public DtSimCondExpr
00043 {
00044 public:
00045 
00047    DtCeConstant();
00048 
00050    DtCeConstant(bool value,
00051       DtReaderWriterRegistry* parentRegistry = NULL);
00052 
00054    DtCeConstant(const DtCeConstant& orig,
00055       DtReaderWriterRegistry* parentRegistry = NULL);
00056 
00058    virtual ~DtCeConstant();
00059 
00061    DtCeConstant& operator=(const DtCeConstant& orig);
00062 
00064    virtual DtSimCondExpr* clone(DtReaderWriterRegistry* parentRegistry = NULL);
00065 
00068    virtual int type() const;
00069 
00071    virtual bool value() const;
00072 
00082    virtual DtString stringRep(int subExprIndex = DtSR_EXPR) const;
00083 
00086    virtual int netRepSize() const;
00087 
00089    virtual bool setFromNet(const char* contentBuffer, 
00090       unsigned contentSize);
00091 
00094    virtual bool setToNet();
00095 
00096    static DtSimCondExpr * creatorTrue();
00097    static DtSimCondExpr * creatorFalse();
00098 
00099 protected:
00100    bool myValue;
00101 };
00102 
00103 #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)