Merge pull request #1844 from jrw972/monterey
[ACE_TAO.git] / TAO / tests / OctetSeq / test_i.h
blobcfa06030369a8bfa40a9b52a851608bca9608211
2 //=============================================================================
3 /**
4 * @file test_i.h
6 * @author Carlos O'Ryan
7 */
8 //=============================================================================
11 #ifndef TAO_OCTETSEQ_TEST_I_H
12 #define TAO_OCTETSEQ_TEST_I_H
14 #include "testS.h"
16 /**
17 * @class Database_i
19 * Implements the Database interface in test.idl
21 class Database_i : public POA_Test::Database
23 public:
24 /// ctor
25 Database_i (CORBA::ORB_ptr orb,
26 Test::Index max_range);
28 /// dtor
29 ~Database_i (void);
31 // = The Simple_Server methods.
32 void set (Test::Index i,
33 const Test::OctetSeq& seq,
34 CORBA::Double verification_token,
35 CORBA::Double_out returned_token);
37 Test::OctetSeq* get (Test::Index i);
39 CORBA::ULong get_crc (Test::Index i);
41 void shutdown (void);
43 private:
44 /// The ORB pointer
45 CORBA::ORB_var orb_;
47 /// The maximum number of elements in the database
48 Test::Index max_range_;
50 /// The elements
51 Test::OctetSeq* elements_;
54 #if defined(__ACE_INLINE__)
55 #include "test_i.inl"
56 #endif /* __ACE_INLINE__ */
58 #endif /* TAO_MT_CLIENT_TEST_I_H */