Kea  1.9.9-git
isc::util::VersionedColumn Class Reference

Contains the metadata for a single column in a file. More...

#include <versioned_csv_file.h>

Public Member Functions

 VersionedColumn (const std::string &name, const std::string &version, const std::string &default_value="")
 Constructor. More...
 
virtual ~VersionedColumn ()
 Destructor. More...
 

Public Attributes

std::string default_value_
 default_value The value the column should be assigned if it is not present in a data row. More...
 
std::string name_
 Name of the column. More...
 
std::string version_
 Text representation of the schema version in which this column first appeared. More...
 

Detailed Description

Contains the metadata for a single column in a file.

Definition at line 23 of file versioned_csv_file.h.

Constructor & Destructor Documentation

isc::util::VersionedColumn::VersionedColumn ( const std::string &  name,
const std::string &  version,
const std::string &  default_value = "" 
)
inline

Constructor.

Parameters
nameName of the column.
versionText representation of the schema version in which this column first appeared.
default_valueThe value the column should be assigned if it is not present in a data row. It defaults to an empty string, ""

Definition at line 32 of file versioned_csv_file.h.

virtual isc::util::VersionedColumn::~VersionedColumn ( )
inlinevirtual

Destructor.

Definition at line 38 of file versioned_csv_file.h.

Member Data Documentation

std::string isc::util::VersionedColumn::default_value_

default_value The value the column should be assigned if it is not present in a data row.

Definition at line 49 of file versioned_csv_file.h.

std::string isc::util::VersionedColumn::name_

Name of the column.

Definition at line 38 of file versioned_csv_file.h.

std::string isc::util::VersionedColumn::version_

Text representation of the schema version in which this column first appeared.

Definition at line 45 of file versioned_csv_file.h.


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