MAK RTIspy API Documentation for HLA 1.3
repException.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 2001 MAK Technologies, Inc.
3 ** All rights reserved.
4 *********************************************************************/
5 /*********************************************************************
6 ** $RCSfile: repException.h,v $ $Revision: 1.5 $ $State: Exp $
7 *********************************************************************/
8 
11 
12 #ifndef DtReportExceptionInteraction_H_
13 #define DtReportExceptionInteraction_H_
14 #ifdef DtMOM
15 #if defined(DtIFSPEC1516) || defined(DtIFSPEC1516E)
16 
17 #include "rtiMsConfig.h"
18 #include "internalTypes.h"
19 #include "mInteraction.h"
20 #include <vlutil/vlList.h>
21 
22 class DtMomInterCbMgr;
23 class DtReportExceptionInteraction;
24 typedef void (*DtReportExceptionInteractionCb)
25  (const DtReportExceptionInteraction& inter, void* usr);
26 
27 class DT_DLL_LRC DtReportExceptionInteraction :
28  public DtReportInteraction
29 {
30 public:
31 
33  DtReportExceptionInteraction();
34 
36  virtual ~DtReportExceptionInteraction();
37 
39  DtReportExceptionInteraction(
40  const DtReportExceptionInteraction& orig);
41 
43  DtReportExceptionInteraction& operator=(
44  const DtReportExceptionInteraction& orig);
45 
48  virtual const DtPhvps& phvps();
49 
52  virtual bool setFromPhvps(const DtPhvps& phvps);
53 
55  virtual std::wstring const & serviceName() const;
56  virtual void setServiceName(std::wstring const & data);
57 
59  virtual std::wstring const & exception() const;
60  virtual void setException(std::wstring const & data);
61 
62 
63 public:
65  static DtReportInteraction* create();
66 
68  static void addCallback(DtMomInterCbMgr* callBackManager,
69  DtReportExceptionInteractionCb cb, void* usr);
70  static void removeCallback(DtMomInterCbMgr* callBackManager,
71  DtReportExceptionInteractionCb cb, void* usr);
72 
73 protected:
74 
76  virtual void encodeServiceName(
77  const DtMomInteraction& data,
78  DtPhvps* parameters,
79  DtParameterHandle parameterHandle);
80 
82  virtual void encodeException(
83  const DtMomInteraction& data,
84  DtPhvps* parameters,
85  DtParameterHandle parameterHandle);
86 
88  virtual void decodeServiceName(
89  DtMomInteraction* data,
90  const DtPhvps& parameters,
91  int index);
92 
94  virtual void decodeException(
95  DtMomInteraction* data,
96  const DtPhvps& parameters,
97  int index);
98 
99 public:
100  static const char* theInteractionName;
101 
102 protected:
104  std::wstring myServiceName;
105  std::wstring myException;
106 
107  const char *SERVICE_PARAMETER_NAME;
108  const char *EXCEPTION_PARAMETER_NAME;
109 };
110 
111 #endif
112 #endif
113 #endif

Document ID: Generated on Fri Mar 14 19:08:55 EDT 2014 from SVN revision 137085
Copyright © 2005-2014 VT MÄK Inc. All Rights Reserved (www.mak.com)