dxFeed Graal CXX API v9.0.0
Loading...
Searching...
No Matches
EventTypeWithSymbol< Symbol > Struct Template Referenceabstract

Event type parametrized by a symbol. More...

#include <EventType.hpp>

Inheritance diagram for EventTypeWithSymbol< Symbol >:

Public Types

using Ptr = std::shared_ptr<EventTypeWithSymbol<Symbol>>
 The alias to a type of shared pointer to the EventTypeWithSymbol's child object.
Public Types inherited from EventType
using Ptr = std::shared_ptr<EventType>
 The alias to a type of shared pointer to the EventType object.
Public Types inherited from SharedEntity
using Ptr = std::shared_ptr<SharedEntity>
 The alias to a type of shared pointer to the SharedEntity object.

Public Member Functions

virtual const Symbol & getEventSymbol () const &noexcept=0
 Returns the event symbol that identifies this event type in subscription.
virtual const std::optional< Symbol > & getEventSymbolOpt () const &noexcept=0
 Returns the event symbol that identifies this event type in subscription.
virtual void setEventSymbol (const Symbol &eventSymbol) noexcept=0
 Changes the event symbol that identifies this event type in subscription.
Public Member Functions inherited from EventType
virtual std::int64_t getEventTime () const noexcept
 Returns time when an event was created or zero when time is not available.
virtual void setEventTime (std::int64_t eventTime) noexcept
 Changes event creation time.
virtual void * toGraal () const =0
 Allocates memory for the dxFeed Graal SDK structure (recursively if necessary).
virtual void assign (std::shared_ptr< EventType > event)
 Replaces the contents of the event.
std::string toString () const override
 Returns a string representation of the current object.
Public Member Functions inherited from SharedEntity
template<typename T>
bool is () const noexcept
 Checks that the object is of type T: its dynamic type is T or derived from T.
template<typename T>
std::shared_ptr< T > sharedAs () noexcept
 Returns a pointer to the current object wrapped in a smart pointer to type T or std::shared_ptr<T>{nullptr} if the object is not managed by std::shared_ptr.
template<typename T>
std::shared_ptr< T > sharedAs () const noexcept
 Returns a pointer to the current object wrapped in a smart pointer to type T or std::shared_ptr<T>{nullptr} if the object is not managed by std::shared_ptr.
Public Member Functions inherited from Entity
virtual ~Entity () noexcept
 The default virtual d-tor.

Detailed Description

template<typename Symbol>
struct EventTypeWithSymbol< Symbol >

Event type parametrized by a symbol.

Template Parameters
SymbolThe type od symbol

Member Function Documentation

◆ getEventSymbol()

template<typename Symbol>
virtual const Symbol & EventTypeWithSymbol< Symbol >::getEventSymbol ( ) const &
pure virtualnoexcept

Returns the event symbol that identifies this event type in subscription.

Returns
The event symbol.

Implemented in Candle.

◆ getEventSymbolOpt()

template<typename Symbol>
virtual const std::optional< Symbol > & EventTypeWithSymbol< Symbol >::getEventSymbolOpt ( ) const &
pure virtualnoexcept

Returns the event symbol that identifies this event type in subscription.

Returns
The event symbol or std::nullopt.

Implemented in Candle.

◆ setEventSymbol()

template<typename Symbol>
virtual void EventTypeWithSymbol< Symbol >::setEventSymbol ( const Symbol & eventSymbol)
pure virtualnoexcept

Changes the event symbol that identifies this event type in subscription.

Parameters
eventSymbolevent symbol.

Implemented in Candle.