Merge pull request #2309 from mitza-oci/warnings
[ACE_TAO.git] / TAO / orbsvcs / tests / Trading / Simple_Dynamic.h
blob6417e6df24dfd8c2fe16d1cab1b8993c4e786560
1 // ========================================================================
2 //
3 // = FILE
4 // Simple_Dynamic.h
5 //
6 // = DESCRIPTION
7 // Class that implements a really simple dynamic property.
8 //
9 // = AUTHOR
10 // Seth Widoff <sbw1@cs.wustl.edu>
12 // =======================================================================
14 #ifndef TAO_SIMPLE_DYNAMIC_H
15 #define TAO_SIMPLE_DYNAMIC_H
17 #include "orbsvcs/Trader/Trader_Utils.h"
19 #if defined(_MSC_VER)
20 #pragma warning(push)
21 #pragma warning(disable:4250)
22 #endif /* _MSC_VER */
24 template<class T>
25 class TAO_Simple_Dynamic_Property : public TAO_Dynamic_Property
27 public:
28 TAO_Simple_Dynamic_Property (const T& dp);
30 virtual CORBA::Any* evalDP (const char* /* name */,
31 CORBA::TypeCode_ptr /* returned_type */,
32 const CORBA::Any&); /* extra_info */
34 private:
35 T dp_;
38 #if defined(_MSC_VER)
39 #pragma warning(pop)
40 #endif /* _MSC_VER */
42 #include "Simple_Dynamic.cpp"
44 #endif /* TAO_SIMPLE_DYNAMIC_H */