VR-Forces 5.0.3 Developer's Guide
 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 
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
DtNetU8 myPadding6
1 byte
Definition: ceConstant.h:34
DtSimCondExpr & operator=(const DtSimCondExpr &orig)
assignment operator
virtual DtSimCondExpr * clone(DtReaderWriterRegistry *parentRegistry=NULL) const =0
clone operator
DtNetU8 myPadding7
1 byte
Definition: ceConstant.h:35
DtNetU8 myPadding2
1 byte
Definition: ceConstant.h:30
DtNetBoolean myValue
Definition: ceConstant.h:27
bool myValue
Definition: ceConstant.h:100
virtual bool setFromNet(const char *contentBuffer, unsigned contentSize)
Definition: simCondExpr.h:148
const char DtCeFalseTypeName[]
Definition: ceConstant.h:20
Definition: readerWriterRegistry.h:39
class DtCeConstant:
Definition: ceConstant.h:42
DtNetU8 myPadding1
1 byte
Definition: ceConstant.h:29
virtual int netRepSize() const
These 3 should become pure virtual functions.
Definition: simCondExpr.h:145
DtNetU8 myPadding5
1 byte
Definition: ceConstant.h:33
this struct is the network representation of a constant conditional expression
Definition: ceConstant.h:25
DtSimCondExpr is an abstract base class representing various Conditional Expressions used by the Plan...
Definition: simCondExpr.h:53
const char DtCeTrueTypeName[]
Definition: ceConstant.h:19
#define DT_DLL_vrfutil
This file is used to determine how to build Disable inconsistent dll linkage warning Visual Studio 6...
Definition: vrfutilDefines.h:34
DtNetU8 myPadding4
1 byte
Definition: ceConstant.h:32
virtual DtString stringRep(int subExprIndex=DtSR_EXPR) const =0
Get a readable string representation of this level of this expression.
DtNetU8 myPadding3
1 byte
Definition: ceConstant.h:31
virtual bool setToNet()
Definition: simCondExpr.h:152
DtNetU8 myPadding
Definition: ceConstant.h:28
virtual int type() const =0
Returns the type of conditional expression defined in condExprTypes.h.

Document ID: Generated on Thu Jun 1 17:58:13 EDT 2023 from SVN revision 255404
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)