Developer documentation
Version 3.0.3-105-gd3941f44
MR::File::KeyValue::Reader Class Reference

#include "file/key_value.h"

Public Member Functions

 Reader ()
 
 Reader (const std::string &file, const char *first_line=nullptr)
 
void open (const std::string &file, const char *first_line=nullptr)
 
bool next ()
 
void close ()
 
const std::string & key () const throw ()
 
const std::string & value () const throw ()
 
const std::string & name () const throw ()
 

Protected Attributes

std::string K
 
std::string V
 
std::string filename
 
std::ifstream in
 

Detailed Description

Definition at line 36 of file key_value.h.

Constructor & Destructor Documentation

◆ Reader() [1/2]

MR::File::KeyValue::Reader::Reader ( )
inline

Definition at line 38 of file key_value.h.

◆ Reader() [2/2]

MR::File::KeyValue::Reader::Reader ( const std::string &  file,
const char *  first_line = nullptr 
)
inline

Definition at line 39 of file key_value.h.

Member Function Documentation

◆ close()

void MR::File::KeyValue::Reader::close ( )
inline

Definition at line 45 of file key_value.h.

◆ key()

const std::string & MR::File::KeyValue::Reader::key ( ) const
throw (
)
inline

Definition at line 49 of file key_value.h.

◆ name()

const std::string & MR::File::KeyValue::Reader::name ( ) const
throw (
)
inline

Definition at line 55 of file key_value.h.

◆ next()

bool MR::File::KeyValue::Reader::next ( )

◆ open()

void MR::File::KeyValue::Reader::open ( const std::string &  file,
const char *  first_line = nullptr 
)

◆ value()

const std::string & MR::File::KeyValue::Reader::value ( ) const
throw (
)
inline

Definition at line 52 of file key_value.h.

Member Data Documentation

◆ filename

std::string MR::File::KeyValue::Reader::filename
protected

Definition at line 60 of file key_value.h.

◆ in

std::ifstream MR::File::KeyValue::Reader::in
protected

Definition at line 61 of file key_value.h.

◆ K

std::string MR::File::KeyValue::Reader::K
protected

Definition at line 60 of file key_value.h.

◆ V

std::string MR::File::KeyValue::Reader::V
protected

Definition at line 60 of file key_value.h.


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