The advert class represents an entry in a saga::advert::directory. An advert directory is a meta data directory with a hierarchical namespace attached. This class inherits all methods from saga::name_space::namespace_entry and provides additional methods to publish new and query existing adverts. More...
#include <advert.hpp>
Public Member Functions | |
entry (saga::session const &s, saga::url url, int mode=Read) | |
Constructs an advert object that points to url, opens it in mode and associates it with the session s. | |
entry (saga::url url, int mode=Read) | |
Constructs an advert object that points to url and opens it in mode. | |
entry (saga::object const &other) | |
Constructs a copy of other. | |
entry (void) | |
Constructs a default advert object. | |
~entry (void) | |
Destroys the advert object and frees all allocated resources. | |
void | store_object (saga::object object) |
Stores a saga object in this advert. | |
template<typename T > | |
boost::disable_if < detail::has_sync_tag< T > >::type | store_object (T const &object) |
saga::object | retrieve_object () |
Retrieves the saga object stored in this advert. | |
template<typename T > | |
T & | retrieve_object (typename boost::disable_if< detail::has_sync_tag< T > >::type *=0) |
saga::object | retrieve_object (saga::session const &s) |
Retrieves the saga object stored in this advert and associates it with the session s. | |
void | store_string (std::string str) |
Stores a string in this advert. | |
std::string | retrieve_string (void) |
Retrieves the string stored in this advert. | |
Static Public Member Functions | |
static entry | create (session const &s, saga::url const &url, int mode=Read) |
Factory function resembling entry(session, url, int) constructor. | |
static entry | create (saga::url const &url, int mode=Read) |
Factory function resembling entry(url, int) constructor. | |
template<typename Tag > | |
static saga::task | create (saga::url const &url, int mode=Read) |
The advert class represents an entry in a saga::advert::directory. An advert directory is a meta data directory with a hierarchical namespace attached. This class inherits all methods from saga::name_space::namespace_entry and provides additional methods to publish new and query existing adverts.
Definition at line 110 of file packages/advert/advert.hpp.
saga::advert::entry::entry | ( | saga::session const & | s, | |
saga::url | url, | |||
int | mode = Read | |||
) |
Constructs an advert object that points to url, opens it in mode and associates it with the session s.
Definition at line 78 of file advert.cpp.
saga::advert::entry::entry | ( | saga::url | url, | |
int | mode = Read | |||
) | [explicit] |
Constructs an advert object that points to url and opens it in mode.
Definition at line 101 of file advert.cpp.
saga::advert::entry::entry | ( | saga::object const & | other | ) | [explicit] |
Constructs a copy of other.
Definition at line 133 of file advert.cpp.
References saga::object::Advert, saga::BadParameter, and saga::object::get_type().
saga::advert::entry::entry | ( | void | ) |
Constructs a default advert object.
Definition at line 124 of file advert.cpp.
saga::advert::entry::~entry | ( | void | ) |
Destroys the advert object and frees all allocated resources.
Definition at line 142 of file advert.cpp.
static entry saga::advert::entry::create | ( | session const & | s, | |
saga::url const & | url, | |||
int | mode = Read | |||
) | [inline, static] |
Factory function resembling entry(session, url, int) constructor.
Definition at line 180 of file packages/advert/advert.hpp.
static entry saga::advert::entry::create | ( | saga::url const & | url, | |
int | mode = Read | |||
) | [inline, static] |
Factory function resembling entry(url, int) constructor.
Definition at line 191 of file packages/advert/advert.hpp.
static saga::task saga::advert::entry::create | ( | saga::url const & | url, | |
int | mode = Read | |||
) | [inline, static] |
Definition at line 196 of file packages/advert/advert.hpp.
void saga::advert::entry::store_object | ( | saga::object | object | ) | [inline] |
Stores a saga object in this advert.
object | The object to store |
Definition at line 210 of file packages/advert/advert.hpp.
References saga::task::get_result().
boost::disable_if<detail::has_sync_tag<T> >::type saga::advert::entry::store_object | ( | T const & | object | ) | [inline] |
Definition at line 218 of file packages/advert/advert.hpp.
References saga::task::get_result().
saga::object saga::advert::entry::retrieve_object | ( | ) | [inline] |
Retrieves the saga object stored in this advert.
Definition at line 242 of file packages/advert/advert.hpp.
References saga::task::get_result().
T& saga::advert::entry::retrieve_object | ( | typename boost::disable_if< detail::has_sync_tag< T > >::type * | = 0 |
) | [inline] |
Definition at line 258 of file packages/advert/advert.hpp.
References saga::task::get_result().
saga::object saga::advert::entry::retrieve_object | ( | saga::session const & | s | ) | [inline] |
Retrieves the saga object stored in this advert and associates it with the session s.
s | a session object |
Definition at line 280 of file packages/advert/advert.hpp.
References saga::task::get_result().
void saga::advert::entry::store_string | ( | std::string | str | ) | [inline] |
Stores a string in this advert.
obsolete API below, don't use this anymore
str | The string to store |
Definition at line 302 of file packages/advert/advert.hpp.
References saga::task::get_result().
std::string saga::advert::entry::retrieve_string | ( | void | ) | [inline] |
Retrieves the string stored in this advert.
Definition at line 323 of file packages/advert/advert.hpp.
References saga::task::get_result().