localhost.hpp

См. документацию.
00001 /*
00002 
00003 Copyright (c) 2002-2005, Yauheni Akhotnikau
00004 All rights reserved.
00005 
00006 Redistribution and use in source and binary forms, with or without
00007 modification, are permitted provided that the following conditions are met:
00008 
00009 - Redistributions of source code must retain the above copyright notice, this
00010 list of conditions and the following disclaimer.
00011 
00012 - Redistributions in binary form must reproduce the above copyright notice, this
00013 list of conditions and the following disclaimer in the documentation and/or
00014 other materials provided with the distribution.
00015 
00016 - The name of the author may not be used to endorse or promote products derived
00017 from this software without specific prior written permission.
00018 
00019 THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED
00020 WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
00021 MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
00022 EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
00023 EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT
00024 OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
00025 INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
00026 CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
00027 IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
00028 OF SUCH DAMAGE.
00029 
00030 */
00031 
00032 /*
00033   ObjESSty-1
00034 */
00035 
00042 #if !defined( _OESS_1__DB__SITE__LOCALHOST_HPP_ )
00043 #define _OESS_1__DB__SITE__LOCALHOST_HPP_
00044 
00045 #include <oess_1/db/h/declspec.hpp>
00046 
00047 #include <string>
00048 
00049 #include <oess_1/defs/h/types.hpp>
00050 
00051 #include <oess_1/db/storage/h/config.hpp>
00052 
00053 #include <oess_1/db/site/h/abstract_connector.hpp>
00054 
00055 namespace oess_1 {
00056 
00057 namespace db {
00058 
00059 namespace site {
00060 
00061 namespace impl {
00062 
00063 class request_t;
00064 class response_t;
00065 
00066 } /* namespace impl */
00067 
00068 //
00069 // localhost_t
00070 //
00071 
00079 class OESS_1__DB__TYPE  localhost_t
00080 {
00081   public :
00082     virtual ~localhost_t();
00083 
00085     enum
00086     {
00088       no_overwrite = 1
00089     };
00090 
00092 
00100     virtual void
00101     db_create(
00103       const std::string & physic_name,
00109       oess_1::uint_t creation_mode ) = 0;
00110 
00112 
00121     virtual void
00122     db_create(
00124       const std::string & physic_name,
00126       const oess_1::db::storage::config_t & config,
00132       oess_1::uint_t creation_mode ) = 0;
00133 
00135     virtual void
00136     db_describe(
00139       const std::string & logic_name,
00142       const std::string & physic_name,
00146       oess_1::uint_t cache_size,
00148       bool is_read_only,
00151       bool is_auto_repair_enabled ) = 0;
00152 
00154 
00160     virtual void
00161     db_describe(
00164       const std::string & logic_name,
00167       const std::string & physic_name,
00169       const oess_1::db::storage::config_t & config,
00171       bool is_read_only,
00174       bool is_auto_repair_enabled ) = 0;
00175 
00177 
00181     virtual void
00182     db_flush_all() = 0;
00183 
00187 
00198     virtual bool
00199     db_set_auto_flush(
00202       const std::string & logic_name,
00206       bool is_on ) = 0;
00207 
00209 
00212     virtual impl::response_t *
00213     process(
00214       const impl::request_t & req ) = 0;
00215 
00216 };
00217 
00218 //
00219 // create_std_localhost
00220 //
00221 
00228 OESS_1__DB__FUNC(localhost_t *)
00229 create_std_localhost();
00230 
00231 //
00232 // create_std_localhost_connector
00233 //
00234 
00243 OESS_1__DB__FUNC(abstract_connector_t *)
00244 create_std_localhost_connector(
00245   localhost_t & );
00246 
00247 } /* namespace site */
00248 
00249 } /* namespace db */
00250 
00251 } /* namespace oess_1 */
00252 
00253 #endif

Документация по ObjESSty. Последние изменения: Fri Oct 13 18:35:35 2006. Создано системой  doxygen 1.4.7
Hosted by uCoz