SAGA Adaptor CPI v.1.0
namespace_entry_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_NAMESPACE_CPI_ENTRY_INSTANCE_DATA_HPP
00009 #define SAGA_SAGA_ADAPTORS_NAMESPACE_CPI_ENTRY_INSTANCE_DATA_HPP
00010 
00011 #include <saga/saga/packages/namespace/namespace_entry.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/url.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 namespace_entry_cpi_instance_data 
00025       : public adaptors::instance_data_base
00026   {
00027     saga::url location_;  // location of the entry
00028     int mode_;            // initial open mode
00029 
00030     namespace_entry_cpi_instance_data (saga::url location, int mode)
00031         : location_ (location.clone()), mode_ (mode)
00032     {
00033     }
00034   };
00035   
00036 } } } // namespace saga::adaptors::v1_0
00038 
00039 #endif // SAGA_SAGA_ADAPTORS_NAMESPACE_ENTRY_CPI_INSTANCE_DATA_HPP
00040 
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines