diff options
Diffstat (limited to 'trunk/TAO/tests/Portable_Interceptors/Benchmark/test_i.h')
-rw-r--r-- | trunk/TAO/tests/Portable_Interceptors/Benchmark/test_i.h | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/trunk/TAO/tests/Portable_Interceptors/Benchmark/test_i.h b/trunk/TAO/tests/Portable_Interceptors/Benchmark/test_i.h new file mode 100644 index 00000000000..1e91333a22d --- /dev/null +++ b/trunk/TAO/tests/Portable_Interceptors/Benchmark/test_i.h @@ -0,0 +1,52 @@ +// $Id$ + +// ============================================================================ +// +// = LIBRARY +// TAO/tests/Portable_Interceptors/Benchmark +// +// = FILENAME +// test_i.h +// +// = AUTHOR +// Nanbor Wang +// +// ============================================================================ + +#ifndef TAO_INTERCEPTOR_TEST_I_H +#define TAO_INTERCEPTOR_TEST_I_H + +#include "testS.h" + +class Secure_Vault_i : public POA_Test_Interceptors::Secure_Vault +{ + // = DESCRIPTION + // Implements the Secure_Vault interface in test.idl + +public: + Secure_Vault_i (CORBA::ORB_ptr orb); + // ctor + + virtual CORBA::Short ready (ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS) + ACE_THROW_SPEC ((CORBA::SystemException)); + + virtual void authenticate (const char * user + ACE_ENV_ARG_DECL_WITH_DEFAULTS) + ACE_THROW_SPEC ((CORBA::SystemException, + Test_Interceptors::Invalid)); + // Passwd sent in the service context list + + virtual CORBA::Long update_records (CORBA::Long id, + const Test_Interceptors::Secure_Vault::Record & val + ACE_ENV_ARG_DECL_WITH_DEFAULTS) + ACE_THROW_SPEC ((CORBA::SystemException)); + + virtual void shutdown (ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS) + ACE_THROW_SPEC ((CORBA::SystemException)); + + private: + CORBA::ORB_var orb_; + // The ORB pointer (for shutdown.) +}; + +#endif /* TAO_INTERCEPTOR_TEST_I_H */ |