diff options
Diffstat (limited to 'TAO/examples/Simple/grid/Grid_i.h')
-rw-r--r-- | TAO/examples/Simple/grid/Grid_i.h | 112 |
1 files changed, 0 insertions, 112 deletions
diff --git a/TAO/examples/Simple/grid/Grid_i.h b/TAO/examples/Simple/grid/Grid_i.h deleted file mode 100644 index cd0c34c26a5..00000000000 --- a/TAO/examples/Simple/grid/Grid_i.h +++ /dev/null @@ -1,112 +0,0 @@ -// -*- C++ -*- -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// TAO/tests/Simple/grid -// -// = FILENAME -// Grid_i.h -// -// = DESCRIPTION -// This class implements the Grid IDL interface. -// -// = AUTHOR -// -// ============================================================================ - -#if !defined (GRID_I_H) -#define GRID_I_H - -#include "GridS.h" - -class Grid_i: public POA_Grid -{ - // = TITLE - // Grid object implementation. - // - // = DESCRIPTION - // Grid object implementation -public: - // = Initialization and termination methods. - - Grid_i (void); - // Constructor - - Grid_i (CORBA::Short, - CORBA::Short, - CORBA_Environment &); - // Constructor. - - ~Grid_i (void); - // Destructor - - virtual CORBA::Short width (CORBA_Environment &); - // Returns the width of the grid - - virtual CORBA::Short height (CORBA_Environment &); - // Returns the height of the grid - - virtual void width (CORBA::Short, - CORBA_Environment &); - // Sets the width of the grid. - - virtual void height (CORBA::Short, - CORBA_Environment &); - // Sets the height of the grid. - - virtual void set (CORBA::Short, - CORBA::Short, - CORBA::Long, - CORBA::Environment &); - // Sets the grid value. - - virtual CORBA::Long get (CORBA::Short, - CORBA::Short, - CORBA::Environment &); - // Gets the grid value. - - virtual void destroy (CORBA::Environment &); - // Destroy the grid. - -private: - CORBA::Short width_; - // Width of the grid. - - CORBA::Short height_; - // Height of the grid. - - CORBA::Long **array_; - // Pointer to the matrix. This is organized as an "array of arrays." -}; - -class Grid_Factory_i : public POA_Grid_Factory -{ - // =TITLE - // Create a <Grid>. -public: - // = Initialization and termination methods. - Grid_Factory_i (void); - // Constructor. - - ~Grid_Factory_i (void); - // Destructor. - - virtual Grid_ptr make_grid (CORBA::Short, - CORBA::Short, - CORBA::Environment &_env); - // This function creates and returns a <Grid>. - - virtual void shutdown (CORBA::Environment &env); - // Shutdown the server. - - void orb (CORBA::ORB_ptr o); - // Set the ORB pointer. - -private: - CORBA::ORB_var orb_; - // ORB pointer. -}; - -#endif /* GRID_I_H */ |