std_snapshot_collection.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 
00036 #if !defined( _OESS_1__DB__STORAGE__TRX__STD_SNAPSHOT_COLLECTION_HPP_ )
00037 #define _OESS_1__DB__STORAGE__TRX__STD_SNAPSHOT_COLLECTION_HPP_
00038 
00039 #include <oess_1/db/storage/trx/h/types.hpp>
00040 
00041 namespace oess_1 {
00042 
00043 namespace db {
00044 
00045 namespace storage {
00046 
00047 namespace trx {
00048 
00049 //
00050 // std_snapshot_collection_t
00051 //
00052 
00057 class std_snapshot_collection_t
00058   : public snapshot_collection_t
00059   {
00060   public :
00062     std_snapshot_collection_t(
00064       const std::string & physic_name );
00065     virtual ~std_snapshot_collection_t();
00066 
00068 
00069     virtual unsigned int
00070     size() const;
00071 
00072     virtual trace_file_number_set_t
00073     non_actual() const;
00074 
00075     virtual trace_file_number_t
00076     actual() const;
00077 
00078     virtual bool
00079     has_actual() const;
00080 
00081     virtual void
00082     include(
00083       const std::string & file_name,
00084       trace_file_number_t last_used_trace );
00085 
00086     virtual void
00087     get_actual(
00088       const std::string & file_name ) const;
00089 
00090     virtual void
00091     destroy();
00094   private :
00096     std::string m_physic_name;
00097 
00099     trace_file_number_set_t m_all_snapshot_numbers;
00100   };
00101 
00102 } /* namespace trx */
00103 
00104 } /* namespace storage */
00105 
00106 } /* namespace db */
00107 
00108 } /* namespace oess */
00109 
00110 #endif
00111 

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