asio 0.3.8rc3 Home | Reference | Tutorial | Examples | Design
Examples

s11n_example::stock Struct Reference

List of all members.

Detailed Description

Structure to hold information about a single stock.

Definition at line 19 of file stock.hpp.

Public Member Functions

template<typename Archive>
void serialize (Archive &ar, const unsigned int version)

Public Attributes

std::string code
std::string name
double open_price
double high_price
double low_price
double last_price
double buy_price
int buy_quantity
double sell_price
int sell_quantity


Member Function Documentation

template<typename Archive>
void s11n_example::stock::serialize ( Archive &  ar,
const unsigned int  version 
)

Definition at line 33 of file stock.hpp.

00034   {
00035     ar & code;
00036     ar & name;
00037     ar & open_price;
00038     ar & high_price;
00039     ar & low_price;
00040     ar & last_price;
00041     ar & buy_price;
00042     ar & buy_quantity;
00043     ar & sell_price;
00044     ar & sell_quantity;
00045   }


Member Data Documentation

std::string s11n_example::stock::code

Definition at line 21 of file stock.hpp.

Referenced by serialize().

std::string s11n_example::stock::name

Definition at line 22 of file stock.hpp.

Referenced by serialize().

double s11n_example::stock::open_price

Definition at line 23 of file stock.hpp.

Referenced by serialize().

double s11n_example::stock::high_price

Definition at line 24 of file stock.hpp.

Referenced by serialize().

double s11n_example::stock::low_price

Definition at line 25 of file stock.hpp.

Referenced by serialize().

double s11n_example::stock::last_price

Definition at line 26 of file stock.hpp.

Referenced by serialize().

double s11n_example::stock::buy_price

Definition at line 27 of file stock.hpp.

Referenced by serialize().

int s11n_example::stock::buy_quantity

Definition at line 28 of file stock.hpp.

Referenced by serialize().

double s11n_example::stock::sell_price

Definition at line 29 of file stock.hpp.

Referenced by serialize().

int s11n_example::stock::sell_quantity

Definition at line 30 of file stock.hpp.

Referenced by serialize().


The documentation for this struct was generated from the following file:
asio 0.3.8rc3 Home | Reference | Tutorial | Examples | Design