diff options
author | nobody <nobody@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1999-07-15 16:39:52 +0000 |
---|---|---|
committer | nobody <nobody@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1999-07-15 16:39:52 +0000 |
commit | 2325b338766316babe9c0343e378fa3a24c9f32b (patch) | |
tree | db208a2657302e9308ef1fb6157ce6059f1a65fb /TAO/examples/Persistent_Grid/Grid_i.h | |
parent | 9f29df04f390576fd4ff1c68d9a006ff543b46a5 (diff) | |
download | ATCD-2325b338766316babe9c0343e378fa3a24c9f32b.tar.gz |
This commit was manufactured by cvs2svn to create tag 'ACE-4_6_45'.ACE-4_6_45
Diffstat (limited to 'TAO/examples/Persistent_Grid/Grid_i.h')
-rw-r--r-- | TAO/examples/Persistent_Grid/Grid_i.h | 153 |
1 files changed, 0 insertions, 153 deletions
diff --git a/TAO/examples/Persistent_Grid/Grid_i.h b/TAO/examples/Persistent_Grid/Grid_i.h deleted file mode 100644 index a3e2dbb135d..00000000000 --- a/TAO/examples/Persistent_Grid/Grid_i.h +++ /dev/null @@ -1,153 +0,0 @@ -// -*- C++ -*- -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// TAO/examples/Simple/grid -// -// = FILENAME -// Grid_i.h -// -// = DESCRIPTION -// This class implements the Grid IDL interface. -// -// = AUTHOR -// -// ============================================================================ - -#ifndef GRID_I_H -#define GRID_I_H - -#include "GridS.h" - -typedef ACE_Malloc<ACE_MMAP_MEMORY_POOL, ACE_Null_Mutex> pool_t; -// Memory pool for the persistent stuff - -//class Grid_Factory_i; -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 (Grid_Factory_i &); - // Copy constructor to fool g++ - - ~Grid_Factory_i (void); - // Destructor. - - - virtual Grid_ptr make_grid (CORBA::Short, - CORBA::Short, - CORBA::Environment &_env) - ACE_THROW_SPEC ((CORBA::SystemException)); - // This function creates and returns a <Grid>. - - virtual void shutdown (CORBA::Environment &env) - ACE_THROW_SPEC ((CORBA::SystemException)); - // Shutdown the server. - - virtual void cleanup (CORBA::Environment & ) - ACE_THROW_SPEC ((CORBA::SystemException)); - // Do a clean up of the memory map - - void orb (CORBA::ORB_ptr o); - // Set the ORB pointer. - - void pool_name (const char *name); - // Set the pool pointer - -private: - CORBA::ORB_var orb_; - // ORB pointer. - - char *pool_name_; - // Name of the pool - - pool_t *pool_t_; - // Hold the pool of name pool_name_ -}; - - -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, - pool_t *); - - // Constructor. - - ~Grid_i (void); - // Destructor - - virtual CORBA::Short width (CORBA_Environment &) - ACE_THROW_SPEC ((CORBA::SystemException)); - // Returns the width of the grid - - virtual CORBA::Short height (CORBA_Environment &) - ACE_THROW_SPEC ((CORBA::SystemException)); - // Returns the height of the grid - - virtual void width (CORBA::Short, - CORBA_Environment &) - ACE_THROW_SPEC ((CORBA::SystemException)); - // Sets the width of the grid. - - virtual void height (CORBA::Short, - CORBA_Environment &) - ACE_THROW_SPEC ((CORBA::SystemException)); - // Sets the height of the grid. - - virtual void set (CORBA::Short, - CORBA::Short, - CORBA::Long, - CORBA::Environment &) - ACE_THROW_SPEC ((CORBA::SystemException, - Grid::RANGE_ERROR)); - // Sets the grid value. - - virtual CORBA::Long get (CORBA::Short, - CORBA::Short, - CORBA::Environment &) - ACE_THROW_SPEC ((CORBA::SystemException, - Grid::RANGE_ERROR)); - // Gets the grid value. - - virtual void destroy (CORBA::Environment &) - ACE_THROW_SPEC ((CORBA::SystemException)); - // Destroy the grid. - - void set_pool (pool_t *); - // Set a pointer to the pool - -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." - - pool_t *pool_t_; - //Pointer to the memory pool.. -}; - - -#endif /* GRID_I_H */ |