slice_names_cmd.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__IMPL__SLICE_NAMES_CMD_HPP_ )
00043 #define _OESS_1__DB__SITE__IMPL__SLICE_NAMES_CMD_HPP_
00044 
00045 #include <set>
00046 
00047 #include <oess_1/db/site/impl/h/request.hpp>
00048 #include <oess_1/db/site/impl/h/response.hpp>
00049 
00050 namespace oess_1 {
00051 
00052 namespace db {
00053 
00054 namespace site {
00055 
00056 namespace impl {
00057 
00058 //
00059 // slice_names_cmd_t
00060 //
00061 
00066 class slice_names_cmd_t :
00067   public request_t
00068 {
00069   OESS_SERIALIZER( slice_names_cmd_t )
00070   public :
00071     slice_names_cmd_t();
00072     slice_names_cmd_t(
00074       const std::string & client_id,
00076       const std::string & db_logic_name );
00077     virtual ~slice_names_cmd_t();
00078 
00079     enum {
00080       e_id = 1300
00081     };
00082 
00083     virtual oess_1::uint_t
00084     query_req_id() const;
00085 
00087     const std::string &
00088     query_db_logic_name() const;
00089 
00090   private :
00092     std::string m_db_logic_name;
00093 };
00094 
00095 //
00096 // slice_names_cmd_result_t
00097 //
00098 
00103 class slice_names_cmd_result_t :
00104   public response_t
00105 {
00106   OESS_SERIALIZER( slice_names_cmd_result_t )
00107   public :
00111     slice_names_cmd_result_t();
00113     slice_names_cmd_result_t(
00115       const std::set< std::string > & names );
00117     slice_names_cmd_result_t(
00118       const result_t & result );
00119     virtual ~slice_names_cmd_result_t();
00120 
00121     enum {
00122       e_id = 1301
00123     };
00124 
00125     virtual oess_1::uint_t
00126     query_resp_id() const;
00127 
00131     const std::set< std::string > &
00132     names() const;
00133 
00134   private :
00136     std::set< std::string > m_names;
00137 };
00138 
00139 } /* namespace impl */
00140 
00141 } /* namespace site */
00142 
00143 } /* namespace db */
00144 
00145 } /* namespace oess_1 */
00146 
00147 #endif
00148 
00149 

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