client_map.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 
00037 #if !defined( _OESS_1__DB__IMPL__DB_CONTENT__CLIENT_MAP_HPP_ )
00038 #define _OESS_1__DB__IMPL__DB_CONTENT__CLIENT_MAP_HPP_
00039 
00040 #include <string>
00041 #include <memory>
00042 
00043 #include <oess_1/defs/h/types.hpp>
00044 
00045 namespace oess_1 {
00046 
00047 namespace db {
00048 
00049 namespace impl {
00050 
00051 namespace db_content {
00052 
00053 //
00054 // client_map_t
00055 //
00056 
00061 class client_map_t {
00062   public :
00063     client_map_t();
00064     virtual ~client_map_t();
00065 
00067     virtual void
00068     attach(
00069       const std::string & client_id ) = 0;
00070 
00072     /*  Если такой клиент к БД не подключен, то это
00073       ошибкой не считается. */
00074     virtual void
00075     detach(
00076       const std::string & client_id ) = 0;
00077 
00079     virtual oess_1::uint_t
00080     count() const = 0;
00081 
00083 
00085     virtual void
00086     find(
00087       const std::string & client_id ) const = 0;
00088 
00089   private :
00090     client_map_t( const client_map_t & );
00091     client_map_t &
00092     operator=( const client_map_t & );
00093 };
00094 
00095 //
00096 // create_std_client_map
00097 //
00098 
00106 std::auto_ptr< client_map_t >
00107 create_std_client_map();
00108 
00109 } /* namespace db_content */
00110 
00111 } /* namespace impl */
00112 
00113 } /* namespace db */
00114 
00115 } /* namespace oess_1 */
00116 
00117 #endif

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