diff options
author | brunsch <brunsch@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1999-03-12 22:29:34 +0000 |
---|---|---|
committer | brunsch <brunsch@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1999-03-12 22:29:34 +0000 |
commit | 6b6e54e0978275553fa5e47c4cd08cb9ef2dbec2 (patch) | |
tree | 92e824c63d17b75a8843a1f8b14d2831ac283846 /TAO | |
parent | e5cbfc7f77550ea82c5db2132ebf16c1f2208f53 (diff) | |
download | ATCD-6b6e54e0978275553fa5e47c4cd08cb9ef2dbec2.tar.gz |
New Nestea Bookshelf test.
Diffstat (limited to 'TAO')
-rw-r--r-- | TAO/orbsvcs/tests/ImplRepo/nestea_i.h | 75 |
1 files changed, 75 insertions, 0 deletions
diff --git a/TAO/orbsvcs/tests/ImplRepo/nestea_i.h b/TAO/orbsvcs/tests/ImplRepo/nestea_i.h new file mode 100644 index 00000000000..f9229a39fd5 --- /dev/null +++ b/TAO/orbsvcs/tests/ImplRepo/nestea_i.h @@ -0,0 +1,75 @@ +// -*- C++ -*- +// $Id$ + +// ============================================================================ +// +// = LIBRARY +// TAO/orbsvcs/tests/ImplRepo +// +// = FILENAME +// nestea_i.h +// +// = DESCRIPTION +// This class is an implementation of the Nestea Bookshelf interface. +// +// = AUTHOR +// Darrell Brunsch <brunsch@cs.wustl.edu> +// +// ============================================================================ + +#if !defined (NESTEA_I_H) +#define NESTEA_I_H + +#include "NesteaS.h" + +// Forward declarations. +class Nestea_i; + +// Typedefs. +typedef Nestea_i *Nestea_i_ptr; +typedef Nestea_i_ptr Nestea_i_ref; + +class Nestea_i: public POA_Nestea_Bookshelf +{ + // = TITLE + // Nestea Bookshelf Implementation + // + // = DESCRIPTION + // Implements the Nestea Bookshelf server, which keeps track of the + // number of nestea cans in a bookshelf. You can drink Nestea to add + // it to the bookshelf or crush the cans to remove them. +public: + Nestea_i (int shutdown = 0); + // Constructor that takes in an optional shutdown parameter which, if nonzero, + // will shutdown the server after each call. + + virtual ~Nestea_i (void); + // Destructor + + virtual void drink (CORBA::Long cans, + CORBA::Environment &ACE_TRY_ENV = + CORBA::Environment::default_environment ()); + // Add <cans> number of cans to the bookshelf. + + virtual void crush (CORBA::Long cans, + CORBA::Environment &ACE_TRY_ENV = + CORBA::Environment::default_environment ()); + // Removes <cans> number of cans from the bookshelf. + + virtual CORBA::Long bookshelf_size (CORBA::Environment &ACE_TRY_ENV = + CORBA::Environment::default_environment ()); + // Returns the number of cans in the bookshelf. + + virtual char *get_praise (CORBA::Environment &ACE_TRY_ENV = + CORBA::Environment::default_environment ()); + // Returns comments about your collection. + +private: + int shutdown_; + // Shutdown flag. + + CORBA::Long cans_; + // Number of cans in the bookshelf. +}; + +#endif /* NESTEA_I_H */ |