![]() |
VR-Forces 4.0.4 Class Documentation
|
00001 /******************************************************************************* 00002 ** Copyright (c) 2010 MAK Technologies, Inc. 00003 ** All rights reserved. 00004 *******************************************************************************/ 00005 /******************************************************************************* 00006 ** $RCSfile: ifServerMessage.h,v $ $Revision: 108016 $ $State: Exp $ 00007 *******************************************************************************/ 00008 00011 00012 #pragma once 00013 00014 #include "vrfmsgs/vrfmsgsDefines.h" 00015 #include <vrfExtProtocol/ifaceCont.h> 00016 00022 00023 class DT_DLL_vrfmsgs DtIfServerMessage : public DtSimInterfaceContent 00024 { 00025 public: 00026 enum MessageCategory 00027 { 00028 Unknown = 0, 00029 ScenarioGeneric, 00030 ScenarioLoad, 00031 UserDefined = 100000 00032 }; 00033 00034 public: 00035 00037 DtIfServerMessage(); 00038 00040 virtual ~DtIfServerMessage(); 00041 00043 DtIfServerMessage(const DtIfServerMessage& orig); 00044 00046 DtIfServerMessage& operator=(const DtIfServerMessage& orig); 00047 00049 virtual int type() const; 00050 00051 virtual DtSimInterfaceContent * clone() const; 00052 00053 virtual void setMessage(const std::string&); 00054 virtual std::string message() const; 00055 00056 virtual void setMessageCategory(MessageCategory); 00057 virtual MessageCategory messageCategory() const; 00058 00059 virtual void setSeverity(int); 00060 virtual int severity() const; 00061 00062 virtual void setExtra(int); 00063 virtual int extra() const; 00064 00065 virtual int netRepSize() const; 00066 virtual bool setFromNet(const char* contentBuffer, 00067 unsigned contentSize); 00068 virtual bool setToNet(); 00069 00070 virtual void printDataToString(DtString& str); 00071 00072 static DtSimInterfaceContent* creator(); 00073 00074 protected: 00075 std::string myMessage; 00076 MessageCategory myMessageCategory; 00077 int mySeverity; 00078 00081 int myExtra; 00082 };