SAGA Adaptor CPI v.1.0
file_cpi_instance_data.hpp
Go to the documentation of this file.
00001 //  Copyright (c) 2005-2009 Hartmut Kaiser
00002 //  Copyright (c) 2005-2007 Andre Merzky (andre@merzky.net)
00003 //  Copyright (c) 2005 Michel Zandstra [michelzandstra@gmail.com]
00004 // 
00005 //  Distributed under the Boost Software License, Version 1.0. (See accompanying 
00006 //  file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
00007 
00008 #ifndef SAGA_SAGA_ADAPTORS_FILE_CPI_INSTANCE_DATA_HPP
00009 #define SAGA_SAGA_ADAPTORS_FILE_CPI_INSTANCE_DATA_HPP
00010 
00011 #include <saga/saga/packages/filesystem/file.hpp>
00012 #include <saga/saga/adaptors/config.hpp>
00013 #include <saga/saga/types.hpp>
00014 #include <saga/saga/adaptors/instance_data_base.hpp>
00015 #include <saga/saga/adaptors/packages/namespace_entry_cpi_instance_data.hpp>
00016 
00018 namespace saga { namespace adaptors { namespace v1_0 
00019 {
00021   //  Instance data held by the SAGA engine/package
00022   //  This should be used as a base class when adding additional instance 
00023   //  data for an adaptor.
00024   struct file_cpi_instance_data 
00025       : public namespace_entry_cpi_instance_data
00026   {
00027     saga::off_t pointer_;  // current file pointer position
00028 
00029     file_cpi_instance_data (std::string location, int mode, 
00030             saga::off_t pointer = 0)
00031         : namespace_entry_cpi_instance_data(location, mode), 
00032           pointer_  (pointer)
00033     {
00034     }
00035   };
00036   
00037 } } } // namespace saga::adaptors::v1_0
00039 
00040 #endif // SAGA_SAGA_ADAPTORS_FILE_CPI_INSTANCE_DATA_HPP
00041 
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines