SAGA C++ API 1.6
parameter.cpp
Go to the documentation of this file.
00001 //  Copyright (c) 2005-2009 Hartmut Kaiser
00002 // 
00003 //  Distributed under the Boost Software License, Version 1.0. (See accompanying 
00004 //  file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
00005 
00006 // include dependent spec sections
00007 #include <saga/saga/rpc.hpp>
00008 #include <saga/impl/rpc.hpp>
00009 
00011 namespace saga
00012 {
00013     namespace rpc {
00014     parameter::parameter(void* data, saga::ssize_t size, io_mode mode,
00015             buffer_deleter cb)
00016       : saga::mutable_buffer(new saga::impl::parameter(data, size, mode, cb))
00017     {
00018     }
00019 
00020     parameter::~parameter()
00021     {
00022     }
00023 
00024     saga::impl::parameter* parameter::get_impl() const
00025     { 
00026         typedef saga::object base_type;
00027         return static_cast<saga::impl::parameter*>(this->base_type::get_impl()); 
00028     }
00029 
00030     TR1::shared_ptr <saga::impl::parameter> parameter::get_impl_sp(void) const
00031     {
00032         typedef saga::object base_type;
00033         return TR1::static_pointer_cast <saga::impl::parameter> (
00034             this->base_type::get_impl_sp());
00035     }
00036 
00037     saga::rpc::io_mode parameter::get_mode() const
00038     {
00039         return get_impl()->get_mode();
00040     }
00041 }
00043 }   // namespace saga
00044 
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines