SAGA Adaptor CPI v.1.0
|
00001 // Copyright (c) 2005-2007 Andre Merzky (andre@merzky.net) 00002 // Copyright (c) 2005-2009 Hartmut Kaiser 00003 // 00004 // Use, modification and distribution is subject to the Boost Software 00005 // License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at 00006 // http://www.boost.org/LICENSE_1_0.txt) 00007 00008 #ifndef SAGA_SAGA_ADAPTORS_STREAM_CPI_ENTRY_INSTANCE_DATA_HPP 00009 #define SAGA_SAGA_ADAPTORS_STREAM_CPI_ENTRY_INSTANCE_DATA_HPP 00010 00011 #include <saga/saga/packages/stream/stream.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 stream_cpi_instance_data 00025 : public adaptors::instance_data_base 00026 { 00027 saga::url location_; // location of the stream endpoint 00028 bool is_default_; 00029 00030 stream_cpi_instance_data (saga::url location, bool is_default = true) 00031 : location_ (location), is_default_(is_default) 00032 { 00033 } 00034 }; 00035 00037 }}} // namespace saga::adaptors::v1_0 00038 00039 #endif // SAGA_SAGA_ADAPTORS_STREAM_ENTRY_CPI_INSTANCE_DATA_HPP 00040