Antares Xpansion
Investment simulations for Antares studies
|
struct describing a line in a linkdata file of antares More...
#include <LinkdataRecord.h>
Classes | |
struct | FileColumns |
Public Member Functions | |
LinkdataRecord () | |
LinkdataRecord constructor. | |
LinkdataRecord (const FileColumns &afileColumns) | |
LinkdataRecord constructor versions. | |
std::string | to_row (std::string const &sep_p) const |
returns a one-line string describing the LinkdataRecord | |
void | updateCapacities (double directCapacity_p, double indirectCapacity_p) |
update the capacities of the LinkdataRecord | |
void | fillFromRow (std::string const &line_p) |
populates the LinkdataRecord attributes for a string | |
void | reset () |
reset the LinkdataRecord attributes to 0 | |
Public Attributes | |
FileColumns | fileColumns |
struct describing a line in a linkdata file of antares
|
explicit |
LinkdataRecord constructor versions.
fileColumns | : LinkdataRecord::FileColumns object that hold columns infos of the file |
void LinkdataRecord::fillFromRow | ( | std::string const & | line_p | ) |
populates the LinkdataRecord attributes for a string
line_p | : string describing the record |
std::string LinkdataRecord::to_row | ( | std::string const & | sep_p | ) | const |
returns a one-line string describing the LinkdataRecord
sep_p | : delimiter used to separate record's attributes in the created line string |
void LinkdataRecord::updateCapacities | ( | double | directCapacity_p, |
double | indirectCapacity_p | ||
) |
update the capacities of the LinkdataRecord
directCapacity_p | : value to set to fileColumns.directCapacity_ |
indirectCapacity_p | : value to set to fileColumns.indirectCapacity_ |