|
dxFeed Graal CXX API v9.0.0
|
Source identifier for IndexedEvent. More...
#include <IndexedEventSource.hpp>
Public Member Functions | |
| void * | toGraal () const |
| Allocates memory for the dxFeed Graal SDK structure (recursively if necessary). | |
| IndexedEventSource (std::int32_t id, StringParam name) | |
| Creates the new IndexedEvent's source by id and name. | |
| IndexedEventSource (const IndexedEventSource &other) noexcept | |
| Creates a copy of the source. | |
| IndexedEventSource & | operator= (const IndexedEventSource &other) noexcept |
| Copies the identifier and the name of the source; the type of this source is kept. | |
| std::int32_t | id () const noexcept |
| Returns the source identifier. | |
| std::string | name () const |
| Returns the string representation of the object. | |
| std::string | toString () const |
| Returns the string representation of the object. | |
Static Public Member Functions | |
| static void | freeGraal (void *graalNative) |
| Releases the memory occupied by the dxFeed Graal SDK structure (recursively if necessary). | |
| static IndexedEventSource | fromGraal (void *graalNative) |
| Creates an object of the current type and fills it with data from the dxFeed Graal SDK structure. | |
Static Public Attributes | |
| static const IndexedEventSource | DEFAULT {0, ConstString::Literal{"DEFAULT"}} |
| The default source with zero identifier for all events that do not support multiple sources. | |
Protected Member Functions | |
| constexpr | IndexedEventSource (std::int32_t id, ConstString::Literal name, bool orderSource=false) noexcept |
| Creates a constant source in constant expressions. | |
| IndexedEventSource (std::int32_t id, StringParam name, bool orderSource) | |
| Creates a source of an OrderSource by id and name. | |
| IndexedEventSource (const IndexedEventSource &other, bool orderSource) noexcept | |
| Creates a copy of the source for an OrderSource. | |
| constexpr std::string_view | nameView () const noexcept |
Friends | |
| struct | EventSourceWrapper |
Source identifier for IndexedEvent.
|
inlineconstexprprotectednoexcept |
Creates a constant source in constant expressions.
| id | The identifier. |
| name | The name with static storage duration. |
| orderSource | true for an OrderSource. |
References IndexedEventSource().
Referenced by IndexedEventSource().
| IndexedEventSource::IndexedEventSource | ( | std::int32_t | id, |
| StringParam | name ) |
Creates the new IndexedEvent's source by id and name.
| id | The source id |
| name | The source name |
|
noexcept |
Creates a copy of the source.
A copy of an OrderSource is a source of the IndexedEventSource type.
| other | The source to copy. |
References IndexedEventSource().
|
static |
Releases the memory occupied by the dxFeed Graal SDK structure (recursively if necessary).
| graalNative | The pointer to the dxFeed Graal SDK structure. |
| InvalidArgumentException |
Referenced by EventSourceWrapper::freeGraal(), and IndexedEventSubscriptionSymbol::freeGraal().
|
static |
Creates an object of the current type and fills it with data from the dxFeed Graal SDK structure.
| graalNative | The pointer to the dxFeed Graal SDK structure. |
| InvalidArgumentException |
Referenced by EventSourceWrapper::fromGraal(), and IndexedEventSubscriptionSymbol::fromGraal().
|
noexcept |
Returns the source identifier.
Source identifier is non-negative.
| std::string IndexedEventSource::name | ( | ) | const |
Returns the string representation of the object.
|
inlinenodiscardconstexprprotectednoexcept |
|
noexcept |
Copies the identifier and the name of the source; the type of this source is kept.
| other | The source to copy. |
| void * IndexedEventSource::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.
| std::string IndexedEventSource::toString | ( | ) | const |
Returns the string representation of the object.