Class for streaming SensitivityRecords from csv file. More...
#include <orea/engine/sensitivityfilestream.hpp>
Inheritance diagram for SensitivityInputStream:
Collaboration diagram for SensitivityInputStream:Public Member Functions | |
| SensitivityInputStream (char delim=',', const std::string &comment="#") | |
| Constructor. More... | |
| virtual | ~SensitivityInputStream () |
| void | setStream (std::istream *stream) |
| SensitivityRecord | next () override |
| Returns the next SensitivityRecord in the stream. More... | |
| void | reset () override |
| Resets the stream so that SensitivityRecord objects can be streamed again. More... | |
Public Member Functions inherited from SensitivityStream | |
| virtual | ~SensitivityStream () |
| Destructor. More... | |
| virtual SensitivityRecord | next ()=0 |
| Returns the next SensitivityRecord in the stream. More... | |
| virtual void | reset ()=0 |
| Resets the stream so that SensitivityRecord objects can be streamed again. More... | |
Private Member Functions | |
| SensitivityRecord | processRecord (const std::vector< std::string > &entries) const |
| Create a record from a collection of strings. More... | |
Private Attributes | |
| std::istream * | stream_ |
| Handle on the stram. More... | |
| char | delim_ |
| Csv file delimiter. More... | |
| std::string | comment_ |
| Csv file comment string. More... | |
| QuantLib::Size | lineNo_ |
| Keep track of line number for messages. More... | |
Class for streaming SensitivityRecords from csv file.
Definition at line 34 of file sensitivityfilestream.hpp.
| SensitivityInputStream | ( | char | delim = ',', |
| const std::string & | comment = "#" |
||
| ) |
Constructor.
Definition at line 37 of file sensitivityfilestream.hpp.
|
virtual |
Definition at line 39 of file sensitivityfilestream.hpp.
| void setStream | ( | std::istream * | stream | ) |
Set stream for function
Definition at line 37 of file sensitivityfilestream.cpp.
Here is the caller graph for this function:
|
overridevirtual |
Returns the next SensitivityRecord in the stream.
Implements SensitivityStream.
Definition at line 41 of file sensitivityfilestream.cpp.
Here is the call graph for this function:
|
overridevirtual |
Resets the stream so that SensitivityRecord objects can be streamed again.
Implements SensitivityStream.
Definition at line 67 of file sensitivityfilestream.cpp.
|
private |
Create a record from a collection of strings.
Definition at line 74 of file sensitivityfilestream.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Handle on the stram.
Definition at line 50 of file sensitivityfilestream.hpp.
|
private |
Csv file delimiter.
Definition at line 52 of file sensitivityfilestream.hpp.
|
private |
Csv file comment string.
Definition at line 54 of file sensitivityfilestream.hpp.
|
private |
Keep track of line number for messages.
Definition at line 56 of file sensitivityfilestream.hpp.