Main Page   Modules   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

vdbl_context.h

Go to the documentation of this file.
00001 // Context implementation -*- C++ -*-
00002 
00003 // Copyright (C) 2003 Hermann Schichl
00004 //
00005 // This file is part of the Vienna Database Library.  This library is free
00006 // software; you can redistribute it and/or modify it under the
00007 // terms of the Library GNU General Public License as published by the
00008 // Free Software Foundation; either version 2, or (at your option)
00009 // any later version.
00010 
00011 // This library is distributed in the hope that it will be useful,
00012 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00013 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014 // Library GNU General Public License for more details.
00015 
00016 // As a special exception, you may use this file as part of a free software
00017 // library without restriction.  Specifically, if other files instantiate
00018 // templates or use macros or inline functions from this file, or you compile
00019 // this file and link it with other files to produce an executable, this
00020 // file does not by itself cause the resulting executable to be covered by
00021 // the Library GNU General Public License.  This exception does not however
00022 // invalidate any other reasons why the executable file might be covered by
00023 // the Library GNU General Public License.
00024 
00030 #ifndef __VDBL_CONTEXT_H
00031 #define __VDBL_CONTEXT_H
00032 
00033 #include <vdbl_config.h>
00034 #include <vdbl_types.h>
00035 
00036 __VDBL_BEGIN_NAMESPACE
00037 
00038 #if defined(__sgi) && !defined(__GNUC__) && (_MIPS_SIM != _MIPS_SIM_ABI32)
00039 #pragma set woff 1209
00040 #endif
00041 
00042 class _VDBL_table;
00043 
00045 
00050 class _VDBL_context
00051 {
00052 private:
00054   const _VDBL_table* _t;
00055 
00056 public:
00058 
00061   _VDBL_context() : _t() {}
00062   _VDBL_context(const _VDBL_context& _c) : _t(_c._t) {}
00063   virtual ~_VDBL_context() {}
00065   
00069   _VDBL_context(const _VDBL_table* t) : _t(t) {}
00070 
00074   const _VDBL_table* table() const { return _t; }
00075 
00079   void table(const _VDBL_table* t) { _t = t; }
00080 };
00081 
00083 
00087 typedef _VDBL_context context;
00088 
00089 #if defined(__sgi) && !defined(__GNUC__) && (_MIPS_SIM != _MIPS_SIM_ABI32)
00090 #pragma reset woff 1209
00091 #endif
00092 
00093 __VDBL_END_NAMESPACE
00094 
00095 #endif /* __VDBL_CONTEXT_H */
00096 
00097 // Local Variables:
00098 // mode:C++
00099 // End:

Generated on Tue Nov 4 01:29:11 2003 for Vienna Database Library by doxygen1.2.18