VR-Forces 4.10 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
ceNot.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 1999 MaK Technologies, Inc.
3 ** All rights reserved.
4 *********************************************************************/
5 /*********************************************************************
6 ** $RCSfile: ceNot.h,v $ $Revision: 1.5 $ $State: Exp $
7 *********************************************************************/
8 
11 
12 #ifndef DtCeNot_H_
13 #define DtCeNot_H_
14 
16 #include "vrfutil/simCondExpr.h"
17 
18 const char DtCeNotTypeName[] = "NOT";
19 
20 
23 struct DtNetCeNot
24 {
25  DtNetU16 myCondExprType;
26  DtNetU16 myPadding;
27  DtNetU16 myPadding1;
28  DtNetU16 myPadding2;
29 };
30 
37 #include "vrfutil/vrfutilDefines.h"
39 {
40 public:
41 
43  DtCeNot();
44 
46  DtCeNot(DtReaderWriterRegistry* parentRegistry);
47 
49  DtCeNot(const DtCeNot& orig,
50  DtReaderWriterRegistry* parentRegistry = NULL);
51 
53  virtual ~DtCeNot();
54 
56  DtCeNot& operator=(const DtCeNot& orig);
57 
59  virtual DtSimCondExpr* clone(DtReaderWriterRegistry* parentRegistry = NULL) const;
60 
62  virtual int type() const;
63 
66  virtual void setCondExpr(DtSimCondExpr* condExpr);
67  virtual DtSimCondExpr* condExpr();
68  virtual const DtSimCondExpr* condExpr() const;
69 
72  virtual int subExprCount() const;
79  virtual DtSimCondExpr* subExpr(int index);
80 
90  virtual DtString stringRep(int subExprIndex = DtSR_EXPR) const;
91 
95  virtual DtlObjPtr getData(DtlObjPtr args, const DtReaderWriter::SearchPaths& searchPaths,
96  const DtVariableBindingsList& variableBindings);
97 
100  virtual int netRepSize() const;
101 
103  virtual bool setFromNet(const char* contentBuffer,
104  unsigned contentSize);
105 
108  virtual bool setToNet();
109 
110  static DtSimCondExpr * creator();
111 
112 protected:
114 };
115 
116 #endif
DtSimCondExpr * myCondExpr
Definition: ceNot.h:113
DtSimCondExpr & operator=(const DtSimCondExpr &orig)
assignment operator
virtual DtSimCondExpr * clone(DtReaderWriterRegistry *parentRegistry=NULL) const =0
clone operator
virtual DtSimCondExpr * subExpr(int index)
Get a pointer to any particular sub-expression nested inside this expression.
DtNetU16 myPadding1
2 bytes
Definition: ceNot.h:27
virtual bool setFromNet(const char *contentBuffer, unsigned contentSize)
Definition: simCondExpr.h:142
virtual DtlObjPtr getData(DtlObjPtr args, const SearchPaths &searchPaths, const DtVariableBindingsList &variableBindings)
const char DtCeNotTypeName[]
Definition: ceNot.h:18
Definition: readerWriterRegistry.h:39
DtNetU16 myCondExprType
Definition: ceNot.h:25
DtNetU16 myPadding2
2 bytes
Definition: ceNot.h:28
virtual int netRepSize() const
These 3 should become pure virtual functions.
Definition: simCondExpr.h:139
std::list< const DtRwVariableBindings * > DtVariableBindingsList
Definition: readerWriterRegistry.h:29
std::vector< DtFilename > SearchPaths
Definition: readerWriter.h:92
class DtCeNot:
Definition: ceNot.h:38
DtSimCondExpr is an abstract base class representing various Conditional Expressions used by the Plan...
Definition: simCondExpr.h:49
this struct is the fixed portion of the network representation of a NOT conditional expression...
Definition: ceNot.h:23
virtual int subExprCount() const
Get the number of sub-expressions nested inside this expression.
#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
virtual DtString stringRep(int subExprIndex=DtSR_EXPR) const =0
Get a readable string representation of this level of this expression.
virtual bool setToNet()
Definition: simCondExpr.h:146
DtNetU16 myPadding
2 bytes
Definition: ceNot.h:26
virtual int type() const =0
Returns the type of conditional expression defined in condExprTypes.h.

Document ID: Generated on Tue Sep 21 17:42:52 EDT 2021 from SVN revision 234861
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)