grid_i.h
来自「这是广泛使用的通信开源项目,对于大容量,高并发的通讯要求完全能够胜任,他广泛可用」· C头文件 代码 · 共 128 行
H
128 行
// -*- C++ -*-
// Grid_i.h,v 1.14 2003/07/28 00:17:29 parsons Exp
// ============================================================================
//
// = 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"
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
ACE_ENV_ARG_DECL_NOT_USED);
// Constructor.
~Grid_i (void);
// Destructor
virtual CORBA::Short width (ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
ACE_THROW_SPEC ((CORBA::SystemException));
// Returns the width of the grid
virtual CORBA::Short height (ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
ACE_THROW_SPEC ((CORBA::SystemException));
// Returns the height of the grid
virtual void width (CORBA::Short
ACE_ENV_ARG_DECL_NOT_USED)
ACE_THROW_SPEC ((CORBA::SystemException));
// Sets the width of the grid.
virtual void height (CORBA::Short
ACE_ENV_ARG_DECL_NOT_USED)
ACE_THROW_SPEC ((CORBA::SystemException));
// Sets the height of the grid.
virtual void set (CORBA::Short,
CORBA::Short,
CORBA::Long
ACE_ENV_ARG_DECL_NOT_USED)
ACE_THROW_SPEC ((CORBA::SystemException,
Grid::RANGE_ERROR));
// Sets the grid value.
virtual CORBA::Long get (CORBA::Short,
CORBA::Short
ACE_ENV_ARG_DECL_NOT_USED)
ACE_THROW_SPEC ((CORBA::SystemException,
Grid::RANGE_ERROR));
// Gets the grid value.
virtual void destroy (ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
ACE_THROW_SPEC ((CORBA::SystemException));
// 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
ACE_ENV_ARG_DECL)
ACE_THROW_SPEC ((CORBA::SystemException));
// This function creates and returns a <Grid>.
virtual void shutdown (ACE_ENV_SINGLE_ARG_DECL)
ACE_THROW_SPEC ((CORBA::SystemException));
// Shutdown the server.
void orb (CORBA::ORB_ptr o);
// Set the ORB pointer.
private:
CORBA::ORB_var orb_;
// ORB pointer.
ACE_UNIMPLEMENTED_FUNC (void operator= (const Grid_Factory_i &))
// Keeping g++2.7.2
};
#endif /* GRID_I_H */
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?