dxFeed Graal CXX API
|
A helper wrapper class needed to pass heterogeneous string symbols using a container and convert them to internal Graal representation. More...
#include <StringSymbol.hpp>
Public Member Functions | |
StringSymbol (const char *chars) noexcept | |
Constructs StringSymbol from a char array. | |
StringSymbol (std::string_view stringView) noexcept | |
Constructs StringSymbol from a std::string_view. | |
void * | toGraal () const |
Allocates memory for the dxFeed Graal SDK structure (recursively if necessary). | |
std::string | toString () const noexcept |
Returns a string representation of the current object. | |
Static Public Member Functions | |
static void | freeGraal (void *graalNative) |
Releases the memory occupied by the dxFeed Graal SDK structure (recursively if necessary). | |
static StringSymbol | fromGraal (void *graalNative) |
Creates an object of the current type and fills it with data from the the dxFeed Graal SDK structure. | |
A helper wrapper class needed to pass heterogeneous string symbols using a container and convert them to internal Graal representation.
The current implementation is suboptimal (by memory usage) and will be enhanced.
|
inlinenoexcept |
Constructs StringSymbol from a char array.
chars | The array of chars |
|
inlinenoexcept |
Constructs StringSymbol from a std::string_view.
stringView | The string view |
|
static |
Releases the memory occupied by the dxFeed Graal SDK structure (recursively if necessary).
graalNative | The pointer to the dxFeed Graal SDK structure. |
Referenced by SymbolWrapper::freeGraal().
|
static |
Creates an object of the current type and fills it with data from the the dxFeed Graal SDK structure.
graalNative | The pointer to the dxFeed Graal SDK structure. |
std::invalid_argument |
Referenced by SymbolWrapper::fromGraal().
void * StringSymbol::toGraal | ( | ) | const |
Allocates memory for the dxFeed Graal SDK structure (recursively if necessary).
Fills the dxFeed Graal SDK structure's fields by the data of the current entity (recursively if necessary). Returns the pointer to the filled structure.
|
inlinenoexcept |
Returns a string representation of the current object.