![]() |
OpenMS
|
Typed OSW cell value used for direct SQLite binding. More...
#include <OpenMS/ANALYSIS/OPENSWATH/OpenSwathOSWWriter.h>
Classes | |
| union | Storage |
Public Types | |
| enum class | Type : unsigned char { Null , Int64 , Double , Text } |
Public Member Functions | |
| OSWValue () | |
| ~OSWValue () | |
| OSWValue (std::nullptr_t) | |
| OSWValue (const char *value) | |
| OSWValue (const std::string &value) | |
| OSWValue (Int64 value) | |
| OSWValue (UInt64 value) | |
| OSWValue (int value) | |
| OSWValue (double value) | |
| OSWValue (const OSWValue &rhs) | |
| OSWValue (OSWValue &&rhs) noexcept | |
| OSWValue & | operator= (const OSWValue &rhs) |
| OSWValue & | operator= (OSWValue &&rhs) noexcept |
| bool | isNull () const |
| Returns true if the cell should be inserted as SQL NULL. | |
| Int64 | asInt () const |
| Returns the integer payload. Only valid when type == Type::Int64. | |
| double | asDouble () const |
| Returns the double payload. Only valid when type == Type::Double. | |
| const std::string & | asText () const |
| Returns the text payload. Only valid when type == Type::Text. | |
Static Public Member Functions | |
| static OSWValue | null () |
| Returns a NULL OSW cell. | |
| static OSWValue | text (const std::string &value) |
| Returns a TEXT OSW cell without numeric/null parsing. | |
Public Attributes | |
| Type | type |
| Storage | storage |
Private Member Functions | |
| void | destroyText_ () |
| void | copyFrom_ (const OSWValue &rhs) |
| void | moveFrom_ (OSWValue &&rhs) |
Typed OSW cell value used for direct SQLite binding.
|
strong |
| OSWValue | ( | ) |
| ~OSWValue | ( | ) |
| OSWValue | ( | std::nullptr_t | ) |
| OSWValue | ( | const char * | value | ) |
| OSWValue | ( | const std::string & | value | ) |
| OSWValue | ( | int | value | ) |
| OSWValue | ( | double | value | ) |
| double asDouble | ( | ) | const |
Returns the double payload. Only valid when type == Type::Double.
| Int64 asInt | ( | ) | const |
Returns the integer payload. Only valid when type == Type::Int64.
| const std::string & asText | ( | ) | const |
Returns the text payload. Only valid when type == Type::Text.
|
private |
|
private |
| bool isNull | ( | ) | const |
Returns true if the cell should be inserted as SQL NULL.
|
private |
|
static |
Returns a NULL OSW cell.
|
static |
Returns a TEXT OSW cell without numeric/null parsing.
| Storage storage |
| Type type |