|
lintel 0.2.0
|
#include <Arguments.h>
Public Member Functions | |
| Argument (std::string value, std::string name) | |
| const std::string & | getValue () const |
| const std::string & | getName () const |
| void | setConnectionType (ConnectionType connectionType) |
| template<typename TYPE > | |
| TYPE | getValue () const |
Friends | |
| std::ostream & | operator<< (std::ostream &os, const db::Argument &argument) |
Represents a single named argument with a value and associated connection type.
| lintel::db::Argument::Argument | ( | std::string | value, |
| std::string | name | ||
| ) |
Constructs an argument.
| value | the argument value as a string |
| name | the argument name |
| const std::string & lintel::db::Argument::getName | ( | ) | const |
| const std::string & lintel::db::Argument::getValue | ( | ) | const |
|
inline |
Deserializes the value to the requested type based on the connection type.
| TYPE | the target type |
| db::SQLException | if the connection type is not a known enumerator |
| void lintel::db::Argument::setConnectionType | ( | ConnectionType | connectionType | ) |
Sets the connection type for typed deserialization.
| connectionType | the database connection type |
|
friend |
Streams the argument value and name.