JayBeams  0.1
Another project to have fun coding.
Public Member Functions | Private Attributes | List of all members
jb::itch5::seconds_field Class Reference

Represent a ITCH-5.0 seconds_field. More...

#include <seconds_field.hpp>

Public Member Functions

 seconds_field (int c=0)
 Constructor. More...
 
 seconds_field (std::chrono::seconds const &s)
 Constructor from std::chrono::seconds. More...
 
Accessors
int int_seconds () const
 
std::chrono::seconds seconds () const
 

Private Attributes

int count_
 

Detailed Description

Represent a ITCH-5.0 seconds_field.

ITCH-5.0 uses seconds since midnight for some of its fields.

Definition at line 16 of file seconds_field.hpp.

Constructor & Destructor Documentation

◆ seconds_field() [1/2]

jb::itch5::seconds_field::seconds_field ( int  c = 0)
inlineexplicit

Constructor.

Definition at line 19 of file seconds_field.hpp.

◆ seconds_field() [2/2]

jb::itch5::seconds_field::seconds_field ( std::chrono::seconds const &  s)
inlineexplicit

Constructor from std::chrono::seconds.

Definition at line 24 of file seconds_field.hpp.

Member Function Documentation

◆ int_seconds()

int jb::itch5::seconds_field::int_seconds ( ) const
inline

Definition at line 32 of file seconds_field.hpp.

References count_.

Referenced by jb::itch5::operator<<().

◆ seconds()

std::chrono::seconds jb::itch5::seconds_field::seconds ( ) const
inline

Definition at line 36 of file seconds_field.hpp.

References count_.

Member Data Documentation

◆ count_

int jb::itch5::seconds_field::count_
private

Definition at line 42 of file seconds_field.hpp.

Referenced by int_seconds(), and seconds().


The documentation for this class was generated from the following file: