VR-Forces Development_Version Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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: 149624 $ $State: Exp $
7 *******************************************************************************/
8 
11 
12 #pragma once
13 
14 #include "vrfmsgs/vrfmsgsDefines.h"
16 
22 
24 {
25 public:
27  {
28  Unknown = 0,
32  UserDefined = 100000
33  };
34 
35 public:
36 
39 
41  virtual ~DtIfServerMessage();
42 
45 
48 
50  virtual int type() const;
51 
52  virtual DtSimInterfaceContent * clone() const;
53 
54  virtual void setMessage(const std::string&);
55  virtual std::string message() const;
56 
57  virtual void setMessageCategory(MessageCategory);
58  virtual MessageCategory messageCategory() const;
59 
60  virtual void setSeverity(int);
61  virtual int severity() const;
62 
63  virtual void setExtra(int);
64  virtual int extra() const;
65 
66  virtual int netRepSize() const;
67  virtual bool setFromNet(const char* contentBuffer,
68  unsigned contentSize);
69  virtual bool setToNet();
70 
71  virtual void printDataToString(DtString& str);
72 
73  static DtSimInterfaceContent* creator();
74 
75 protected:
76  std::string myMessage;
79 
82  int myExtra;
83 };

Document ID: Generated on Tue Mar 8 22:13:38 EST 2016 from SVN revision 162938
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)