#include <IpCbcColReader.hpp>
Public Member Functions | |
IpCbcColReader (const char *fileName) | |
Constructor with a file name given by a const char *. | |
IpCbcColReader (const std::string &fileName="") | |
Constructor with a file name given by a string and also default (empty string). | |
bool | readFile () |
Reads the .col file. | |
bool | readFile (const std::string &fileName) |
Reads the .col file fileName. | |
void | copyNames (std::string *varNames, int n_var) |
Copy the names to varNames. | |
Private Types | |
typedef std::map< const char *, int, ltstr > | namesStorage |
Hash type. | |
Private Attributes | |
std::string | fileName_ |
Name of the file to read. | |
namesStorage | varIndices_ |
Hash map used to store the indices. | |
std::vector< std::string > | varNames_ |
Variable names. | |
Classes | |
struct | ltstr |
String comparison strucutre. More... |
Definition at line 22 of file IpCbcColReader.hpp.
typedef std::map< const char *, int, ltstr > IpCbcColReader::namesStorage [private] |
IpCbcColReader::IpCbcColReader | ( | const char * | fileName | ) |
Constructor with a file name given by a const char *.
IpCbcColReader::IpCbcColReader | ( | const std::string & | fileName = "" |
) |
Constructor with a file name given by a string and also default (empty string).
bool IpCbcColReader::readFile | ( | ) |
bool IpCbcColReader::readFile | ( | const std::string & | fileName | ) | [inline] |
Reads the .col file fileName.
Definition at line 32 of file IpCbcColReader.hpp.
References fileName_, and readFile().
void IpCbcColReader::copyNames | ( | std::string * | varNames, | |
int | n_var | |||
) |
Copy the names to varNames.
std::string IpCbcColReader::fileName_ [private] |
Name of the file to read.
Definition at line 42 of file IpCbcColReader.hpp.
Referenced by readFile().
namesStorage IpCbcColReader::varIndices_ [private] |
std::vector<std::string> IpCbcColReader::varNames_ [private] |