![]() |
VR-Forces 4.0.4 Class Documentation
|
00001 /******************************************************************************* 00002 ** Copyright (c) 2004 MAK Technologies, Inc. 00003 ** All rights reserved. 00004 *******************************************************************************/ 00005 /******************************************************************************* 00006 ** $RCSfile: ceReceiveTextMessage.h,v $ $Revision: 1.1 $ $State: Exp $ 00007 *******************************************************************************/ 00008 00011 00013 00014 #ifndef DtCeReceiveTextMessage_H_ 00015 #define DtCeReceiveTextMessage_H_ 00016 00017 #include "vrfutil/condExpr.h" 00018 #include "vrfutil/rdrWritr.h" 00019 #include "vrfutil/rwString.h" 00020 #include "vrfutil/rwBoolean.h" 00021 #include "vrfutil/vrfutilDefines.h" 00022 00025 const char DtCeReceiveTextMessageTypeName[] = "ReceiveText"; 00026 00030 class DT_DLL_vrfutil DtCeReceiveTextMessage : public DtSimCondExpr 00031 { 00032 public: 00033 00035 DtCeReceiveTextMessage(); 00036 00038 DtCeReceiveTextMessage(DtReaderWriterRegistry* parentRegistry); 00039 00041 DtCeReceiveTextMessage(const DtCeReceiveTextMessage& orig, 00042 DtReaderWriterRegistry* parentRegistry = NULL); 00043 00045 virtual ~DtCeReceiveTextMessage(); 00046 00048 DtCeReceiveTextMessage& operator=(const DtCeReceiveTextMessage& orig); 00049 00051 virtual DtSimCondExpr* clone(DtReaderWriterRegistry* parentRegistry = NULL); 00052 00053 virtual bool operator==(const DtCeReceiveTextMessage& rhs) const; 00054 00056 virtual int type() const; 00057 00065 00066 virtual void setMatchingText(const DtString& text); 00067 virtual DtString matchingText() const; 00069 00071 00072 virtual void setAllowContaining(bool allow); 00073 virtual bool allowContaining() const; 00075 00076 virtual DtString stringRep(int subExprIndex = DtSR_EXPR) const; 00077 00078 virtual int netRepSize() const; 00079 00081 virtual bool setFromNet(const char* contentBuffer, 00082 unsigned contentSize); 00083 00086 virtual bool setToNet(); 00087 00089 static DtSimCondExpr * creator(); 00090 00091 protected: 00092 DtRwString myMatchingText; 00093 DtRwBoolean myAllowContaining; 00094 }; 00095 00096 #endif 00097