mapgd  0.4
A program for the Maximum-likelihood analysis of population genomic data.
 All Data Structures Functions Variables Friends Groups Pages
Public Member Functions | Data Fields | Static Public Attributes | Private Member Functions | Static Private Member Functions | Static Private Attributes
Key Class Reference

A key is (i.e. what the user called it). More...

#include <key.h>

Inheritance diagram for Key:
Inheritance graph
[legend]
Collaboration diagram for Key:
Collaboration graph
[legend]

Public Member Functions

 Key (const std::vector< std::string > &)
 
 Key (const std::string &, const float_t &)
 
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
 The dafualt extention for files.
 
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.
 
char name [8]
 
std::string description
 
std::string type
 

Static Public Attributes

static const std::string file_name =".txt"
 The dafualt extention for files.
 
static const std::string table_name ="KEYS"
 Destination table in Db.
 
static const bool binary =false
 Destination table in Db.
 
- 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 Datacreate (const std::vector< std::string > &Columns)
 

Static Private Attributes

static const Registration registered =Registration(Key::table_name, Key::create)
 

Additional Inherited Members

- Static Public Member Functions inherited from Data
static Datanew_from_str (const std::string &, const std::vector< std::string > &)
 Constructs an instance of the class Registered w/ string.
 

Detailed Description

A key is (i.e. what the user called it).


The documentation for this class was generated from the following files: