blob: 2b646a75c562510d7dd400b7932769856c96e62a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
// $Id$
// ========================================================================
//
// = FILE
// Simple_Dyanmic.h
//
// = DESCRIPTION
// Class that implements a really simple dynamic property.
//
// = AUTHOR
// Seth Widoff <sbw1@cs.wustl.edu>
//
// =======================================================================
#ifndef TAO_SIMPLE_DYNAMIC_H
#define TAO_SIMPLE_DYNAMIC_H
#include "orbsvcs/Trader/Trader_Utils.h"
#if defined(_MSC_VER)
#if (_MSC_VER >= 1200)
#pragma warning(push)
#endif /* _MSC_VER >= 1200 */
#pragma warning(disable:4250)
#endif /* _MSC_VER */
template<class T>
class TAO_Simple_Dynamic_Property : public TAO_Dynamic_Property
{
public:
TAO_Simple_Dynamic_Property (const T& dp);
virtual CORBA::Any* evalDP (const char* /* name */,
CORBA::TypeCode_ptr /* returned_type */,
const CORBA::Any& /* extra_info */
TAO_ENV_ARG_DECL_NOT_USED)
ACE_THROW_SPEC ((CosTradingDynamic::DPEvalFailure));
private:
T dp_;
};
#if defined(_MSC_VER) && (_MSC_VER >= 1200)
#pragma warning(pop)
#endif /* _MSC_VER */
#if defined (ACE_TEMPLATES_REQUIRE_SOURCE)
#include "Simple_Dynamic.cpp"
#endif /* ACE_TEMPLATES_REQUIRE_SOURCE */
#endif /* TAO_SIMPLE_DYNAMIC_H */
|