dxFeed Graal CXX API v5.0.0
Loading...
Searching...
No Matches
CFI::Attribute Struct Reference

Describes a single attribute with all values as defined in the ISO 10962 standard. More...

#include <CFI.hpp>

+ Inheritance diagram for CFI::Attribute:

Public Types

using Ptr = std::shared_ptr<Attribute>
 The alias to a type of shared pointer to the Attribute object.
 
using Unique = std::unique_ptr<Attribute>
 The alias to a type of unique pointer to the Attribute 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

std::string getName () const
 Returns a short name of this attribute.
 
std::string getDescription () const
 Returns a description of this attribute.
 
std::vector< std::shared_ptr< CFI::Value > > getValues () const
 Returns values of this attribute.
 
bool operator== (const Attribute &other) const
 Returns true if this object is equal to other object.
 
bool operator== (const Attribute::Ptr &other) const
 Returns true if this object is equal to other object.
 
std::size_t hashCode () const noexcept
 
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 pointer to the current type could be converted to type T* In other words: whether type T belongs to the type hierarchy in which the current type resides.
 
template<typename T>
std::shared_ptr< T > sharedAs () noexcept
 Returns a pointer to the current object wrapped in a smart pointer to type T.
 
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.
 
- Public Member Functions inherited from Entity
virtual ~Entity () noexcept=default
 The default virtual d-tor.
 

Additional Inherited Members

- Static Public Member Functions inherited from RequireMakeShared< Attribute >
static auto createShared (Args &&...args)
 Creates a smart pointer to an object.
 

Detailed Description

Describes a single attribute with all values as defined in the ISO 10962 standard.

Member Function Documentation

◆ getDescription()

std::string CFI::Attribute::getDescription ( ) const

Returns a description of this attribute.

Returns
The description.

◆ getName()

std::string CFI::Attribute::getName ( ) const

Returns a short name of this attribute.

Returns
The short name.

◆ getValues()

std::vector< std::shared_ptr< CFI::Value > > CFI::Attribute::getValues ( ) const

Returns values of this attribute.

Returns
The values.

◆ hashCode()

std::size_t CFI::Attribute::hashCode ( ) const
noexcept
Returns
A hash code value for this object.

◆ operator==() [1/2]

bool CFI::Attribute::operator== ( const Attribute & other) const

Returns true if this object is equal to other object.

Parameters
otherAnother object
Returns
true if this object is equal to other object

◆ operator==() [2/2]

bool CFI::Attribute::operator== ( const Attribute::Ptr & other) const
inline

Returns true if this object is equal to other object.

Parameters
otherAnother object
Returns
true if this object is equal to other object

◆ toString()

std::string CFI::Attribute::toString ( ) const
overridevirtual

Returns a string representation of the current object.

Returns
A string representation

Reimplemented from SharedEntity.