VR-Forces 4.2 Class Documentation
ifServerMessage.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2010 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 /*******************************************************************************
6 ** $RCSfile: ifServerMessage.h,v $ $Revision: 108016 $ $State: Exp $
7 *******************************************************************************/
8 
11 
12 #pragma once
13 
14 #include "vrfmsgs/vrfmsgsDefines.h"
15 #include <vrfExtProtocol/ifaceCont.h>
16 
22 
24 {
25 public:
27  {
28  Unknown = 0,
31  UserDefined = 100000
32  };
33 
34 public:
35 
38 
40  virtual ~DtIfServerMessage();
41 
44 
46  DtIfServerMessage& operator=(const DtIfServerMessage& orig);
47 
49  virtual int type() const;
50 
51  virtual DtSimInterfaceContent * clone() const;
52 
53  virtual void setMessage(const std::string&);
54  virtual std::string message() const;
55 
56  virtual void setMessageCategory(MessageCategory);
57  virtual MessageCategory messageCategory() const;
58 
59  virtual void setSeverity(int);
60  virtual int severity() const;
61 
62  virtual void setExtra(int);
63  virtual int extra() const;
64 
65  virtual int netRepSize() const;
66  virtual bool setFromNet(const char* contentBuffer,
67  unsigned contentSize);
68  virtual bool setToNet();
69 
70  virtual void printDataToString(DtString& str);
71 
72  static DtSimInterfaceContent* creator();
73 
74 protected:
75  std::string myMessage;
78 
81  int myExtra;
82 };

Document ID: Generated on Sun Nov 24 19:49:21 EST 2013 from SVN revision 133924
Copyright © 2005-2013 VT MÄK. All Rights Reserved (www.mak.com)