|
ROOT_Application
2.0
C++ Core modules and GUIStock
|
See Operators for reading and writing data. More...
Namespaces | |
| FDS | |
| For Format of the DataStock output. | |
| BDS | |
| For buffer DataStock. | |
Functions | |
| int | DataStock::helper_operator_read_base (std::iostream &ios) |
| Helper function for operator<< for reading date from input streams. More... | |
| void | DataStock::helper_operator_write_base (std::ostream &os) const |
| Helper function for operator>> for writing date to output. More... | |
Friend operators for input/output. | |
The functions allow to combine DataStocks and use pointer or reference to the base class. More description of their usage in this link | |
| std::ostream & | DataStock::operator<< (std::ostream &os, const DataStock &obj) |
| Fill ostream ( ostringstream ) with text data . More... | |
| std::iostream & | DataStock::operator>> (std::iostream &ios, DataStock &obj) |
| Set a DataStock(s) with data from a iostream( e.g.,stringstream ) . More... | |
| std::string & | DataStock::operator<< (std::string &line_csv, const DataStock &obj) |
| Similar operator, but for use with string as output. More... | |
| std::string & | DataStock::operator>> (std::string &line_csv, DataStock &obj) |
| Similar operator, but can use string as input. More... | |
Pure virtual helper functions for operator << and >> | |
| virtual void | DataStock::helper_operator_write (std::ostream &os) const =0 |
| virtual void | DataStock::helper_operator_read (std::iostream &ios)=0 |
Specific to input/output of SimpleData | |
| virtual void | SimpleData::helper_operator_write (std::ostream &os) const |
| virtual void | SimpleData::helper_operator_read (std::iostream &ios) |
Specific to input/output of MultiData | |
| virtual void | MultiData::helper_operator_write (std::ostream &os) const |
| virtual void | MultiData::helper_operator_read (std::iostream &ios) |
Specific to input/output of DataCSV | |
| virtual void | DataCSV::helper_operator_write (std::ostream &os) const |
| virtual void | DataCSV::helper_operator_read (std::iostream &ios) |
See Operators for reading and writing data.
|
pure virtual |
Implemented in DataCSV, MultiData, and SimpleData.
Referenced by operator>>().

|
protectedvirtual |
Implements DataStock.
Definition at line 389 of file DataStock.cpp.
References Utils::fromStreamToDouble(), and SimpleData::SetValue().

|
protectedvirtual |
Implements DataStock.
Definition at line 611 of file DataStock.cpp.
References Utils::fromStreamToDouble(), MultiData::nb_data, and MultiData::SetValues().

|
protectedvirtual |
Implements DataStock.
Definition at line 894 of file DataStock.cpp.
References Utils::fromStreamToDouble(), and DataCSV::SetValues().

|
protected |
Helper function for operator<< for reading date from input streams.
In base class, reads the date
| is | input/output stream |
Definition at line 186 of file DataStock.cpp.
References BDS::BUFFER_DATE, Utils::ERROR_StrToTime, DataStock::SetDate(), and Utils::StringToTime_t().
Referenced by operator>>().


|
pure virtual |
Implemented in DataCSV, MultiData, and SimpleData.
Referenced by operator<<().

|
protectedvirtual |
Implements DataStock.
Definition at line 384 of file DataStock.cpp.
References SimpleData::GetValue(), FDS::PRECISION, and FDS::WCOL.

|
protectedvirtual |
Implements DataStock.
Definition at line 604 of file DataStock.cpp.
References MultiData::nb_data, FDS::PRECISION, MultiData::values, and FDS::WCOL.
|
protectedvirtual |
Implements DataStock.
Definition at line 885 of file DataStock.cpp.
References DataCSV::GetClose(), DataCSV::GetHigh(), DataCSV::GetLow(), DataCSV::GetOpen(), FDS::PRECISION, and FDS::WCOL.

|
protected |
Helper function for operator>> for writing date to output.
Definition at line 173 of file DataStock.cpp.
References DataStock::GetDateString().
Referenced by operator<<().


|
friend |
Fill ostream ( ostringstream ) with text data
.
Single DataStock can be used:
And multiple DataStock can be combined:
| os | a ostream with text data |
Definition at line 936 of file DataStock.cpp.
|
friend |
Similar operator, but for use with string as output.
Call the standard friend operator>>
Single and multiple DataStock can be used:
| line_csv | string containing the text data to read |
Definition at line 990 of file DataStock.cpp.
|
friend |
Set a DataStock(s) with data from a iostream( e.g.,stringstream )
.
Single DataStock can be used:
And multiple DataStock can be combined:
Normal state of the stream after reading:
Test:
Test than the input was read correctly:
| ios | a iostream with the data |
| obj | the DataStock object to set |
Definition at line 948 of file DataStock.cpp.
|
friend |
Similar operator, but can use string as input.
If the processing is correct the input string should be empty after the execution
| line_csv | string to fill with text data |
| obj | DataStock object to set |
Definition at line 999 of file DataStock.cpp.
1.8.6