Almost all SAGA objects are created in a SAGA session, and are associated with this (and only this) session for their whole life time. More...
#include <session.hpp>
Public Member Functions | |
session () | |
Creates the object. | |
session (saga::object const &obj) | |
Creates the object. | |
~session (void) | |
Destroys the object. | |
session & | operator= (saga::object const &o) |
Brief description starts here. | |
void | add_context (saga::context const &c) |
Attaches a security context to a session. | |
void | remove_context (saga::context const &c) |
Detaches a security context from a session. | |
std::vector< saga::context > | list_contexts () const |
Retrieves all contexts attached to a session. | |
void | close (double timeout=0.0) |
Closes the object. | |
Protected Member Functions | |
session (bool default_session) | |
Friends | |
bool | operator== (session const &lhs, session const &rhs) |
Brief description starts here. |
Almost all SAGA objects are created in a SAGA session, and are associated with this (and only this) session for their whole life time.
A session instance to be used on ob ect instantiation can explicitly be given as first parameter to the SAGA object instantiation call (CONSTRUCTOR). If the session is omitted as first parameter, a default session is used, with default security context(s) attached. The default session can be obtained by passing true to the session CONSTRUCTOR.
Definition at line 51 of file session.hpp.
saga::session::session | ( | bool | default_session | ) | [explicit, protected] |
saga::session::session | ( | ) | [explicit] |
Creates the object.
saga::session::session | ( | saga::object const & | obj | ) | [explicit] |
Creates the object.
saga::session::~session | ( | void | ) |
Destroys the object.
session& saga::session::operator= | ( | saga::object const & | o | ) |
Brief description starts here.
void saga::session::add_context | ( | saga::context const & | c | ) |
Attaches a security context to a session.
c | Security context to add. |
void saga::session::remove_context | ( | saga::context const & | c | ) |
Detaches a security context from a session.
c | Security context to remove. |
std::vector<saga::context> saga::session::list_contexts | ( | ) | const |
Retrieves all contexts attached to a session.
void saga::session::close | ( | double | timeout = 0.0 |
) |
Closes the object.
Brief description starts here.