#include <OWBI1_OperationContext.hpp>
Inheritance diagram for OWBI1::OperationContext:
Public Member Functions | ||||
OperationContext () | ||||
virtual | ~OperationContext () | |||
virtual void | removeData (const String &key)=0 | |||
Remove the data identified by key. | ||||
virtual bool | keyHasData (const String &key) const =0 | |||
Test whether there is data for the key. | ||||
virtual void | setStringData (const String &key, const String &str)=0 | |||
These are for convenience, and are implemented in terms of the first 2 functions. | ||||
virtual String | getStringData (const String &key) const =0 | |||
| ||||
virtual String | getStringDataWithDefault (const String &key, const String &def=String()) const =0 | |||
OperationContext (const OperationContext &) | ||||
OperationContext & | operator= (const OperationContext &) | |||
Static Public Attributes | ||||
static const char *const | USER_NAME | |||
static const char *const | USER_PASSWD | |||
static const char *const | HTTP_PATH | |||
static const char *const | CURUSER_UIDKEY | |||
static const char *const | BYPASS_LOCKERKEY | |||
static const char *const | SESSION_LANGUAGE_KEY | |||
static const char *const | HTTP_ACCEPT_LANGUAGE_KEY | |||
static const char *const | CLIENT_IPADDR |
It works like an associative container, with a String key, and the data is an OperationContext::DataRef. The idea is for a client of this class to create a subclass of OperationContext::Data and then pass a smart pointer to it into setData(). Convenience functions (and a subclass) are provided to use a String for the Data.
Thread safety: None Copy Semantics: Non-copyable
Definition at line 63 of file OWBI1_OperationContext.hpp.
|
Definition at line 46 of file OWBI1_OperationContext.cpp. |
|
Definition at line 51 of file OWBI1_OperationContext.cpp. |
|
|
|
|
|
|
|
Test whether there is data for the key.
|
|
|
|
Remove the data identified by key. It is not an error if key has not already been added to the context with setData().
|
|
These are for convenience, and are implemented in terms of the first 2 functions.
|
|
Definition at line 105 of file OWBI1_OperationContext.hpp. |
|
Definition at line 108 of file OWBI1_OperationContext.hpp. |
|
Definition at line 104 of file OWBI1_OperationContext.hpp. |
|
Definition at line 107 of file OWBI1_OperationContext.hpp. |
|
Definition at line 103 of file OWBI1_OperationContext.hpp. |
|
Definition at line 106 of file OWBI1_OperationContext.hpp. |
|
Definition at line 101 of file OWBI1_OperationContext.hpp. |
|
Definition at line 102 of file OWBI1_OperationContext.hpp. |