|
mapgd
0.4
A program for the Maximum-likelihood analysis of population genomic data.
|
A class to store a log of commands that have been run. More...
#include <log.h>


Public Member Functions | |
| Log (const std::vector< std::string > &) | |
| Log (const std::string &, const float_t &) | |
| const std::string | header (void) const |
| size_t | size (void) const |
| The size of the class in bytes. | |
| const std::string | get_file_name (void) const |
| The dafualt extention for files. | |
| const std::string | get_table_name (void) const |
| The dafualt extention for files. | |
| const bool | get_binary (void) const |
| const std::string | sql_header (void) const |
| Destination table in Db. | |
| const std::string | sql_column_names (void) const |
| Destination table in Db. | |
| const std::string | sql_values (void) const |
| Destination table in Db. | |
Public Member Functions inherited from Data | |
| void | read_binary (std::istream &str) |
| void | write_binary (std::ostream &str) const |
| Data (std::vector< std::string > &) | |
| virtual const bool | indexed () const |
| virtual void | sql_read (std::istream &) |
| Reads the values... | |
Data Fields | |
| char | delim |
| the delimiter used when reading/writing the class in text mode. | |
| std::string | command |
| std::string | message |
| time_t | time |
Static Public Attributes | |
| static const std::string | file_name =".log" |
| The dafualt extention for files. | |
| static const std::string | table_name ="LOGS" |
| Destination table in Db. | |
| static const bool | binary =false |
Static Public Attributes inherited from Data | |
| static const std::string | file_name =".txt" |
| The read function must be defined in the child class. More... | |
| static const std::string | table_name ="NONE" |
| The read function must be defined in the child class. More... | |
Private Member Functions | |
| void | read (std::istream &str) |
| The read function must be defined in the child class. | |
| void | write (std::ostream &str) const |
| ! the write function must be ? by the child class. | |
Static Private Member Functions | |
| static Data * | create (const std::vector< std::string > &Columns) |
Static Private Attributes | |
| static const Registration | registered =Registration(Log::table_name, Log::create) |
Additional Inherited Members | |
Static Public Member Functions inherited from Data | |
| static Data * | new_from_str (const std::string &, const std::vector< std::string > &) |
| Constructs an instance of the class Registered w/ string. | |
A class to store a log of commands that have been run.
Commands should set logs whenever they are run.
1.8.6