VR-Forces 4.6 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
ceConstant.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 1999 MaK Technologies, Inc.
3 ** All rights reserved.
4 *********************************************************************/
5 /*********************************************************************
6 ** $RCSfile: ceConstant.h,v $ $Revision: 1.6 $ $State: Exp $
7 *********************************************************************/
8 
11 
12 #ifndef DtCeConstant_H_
13 #define DtCeConstant_H_
14 
15 #include "vrfutil/readerWriter.h"
16 #include "vrfutil/simCondExpr.h"
17 #include <vlutil/vlNetTypes.h>
18 
19 const char DtCeTrueTypeName[] = "True";
20 const char DtCeFalseTypeName[] = "False";
21 
22 
26 {
27  DtNetBoolean myValue;
28  DtNetU8 myPadding;
29  DtNetU8 myPadding1;
30  DtNetU8 myPadding2;
31  DtNetU8 myPadding3;
32  DtNetU8 myPadding4;
33  DtNetU8 myPadding5;
34  DtNetU8 myPadding6;
35  DtNetU8 myPadding7;
36 };
37 
41 #include "vrfutil/vrfutilDefines.h"
43 {
44 public:
45 
47  DtCeConstant();
48 
50  DtCeConstant(bool value,
51  DtReaderWriterRegistry* parentRegistry = NULL);
52 
54  DtCeConstant(const DtCeConstant& orig,
55  DtReaderWriterRegistry* parentRegistry = NULL);
56 
58  virtual ~DtCeConstant();
59 
61  DtCeConstant& operator=(const DtCeConstant& orig);
62 
64  virtual DtSimCondExpr* clone(DtReaderWriterRegistry* parentRegistry = NULL) const;
65 
68  virtual int type() const;
69 
71  virtual bool value() const;
72 
82  virtual DtString stringRep(int subExprIndex = DtSR_EXPR) const;
83 
86  virtual int netRepSize() const;
87 
89  virtual bool setFromNet(const char* contentBuffer,
90  unsigned contentSize);
91 
94  virtual bool setToNet();
95 
96  static DtSimCondExpr * creatorTrue();
97  static DtSimCondExpr * creatorFalse();
98 
99 protected:
100  bool myValue;
101 };
102 
103 #endif

Document ID: Generated on Thu Apr 12 03:15:37 EDT 2018 from SVN revision 187986
Copyright © 2005-2018 VT MÄK. All Rights Reserved (www.mak.com)