Public Member Functions | List of all members
ndn::BoostInfoParser Class Reference

A BoostInfoParser reads files in Boost's INFO format and constructs a BoostInfoTree. More...

#include <boost-info-parser.hpp>

Public Member Functions

const BoostInfoTreeread (const std::string &fileName)
 Add the contents of the file to the root BoostInfoTree. More...
 
const BoostInfoTreeread (const std::string &input, const std::string &inputName)
 Add the contents of the input string to the root BoostInfoTree. More...
 
void write (const std::string &fileName) const
 Write the root tree of this BoostInfoParser as file in Boost's INFO format. More...
 
const BoostInfoTreegetRoot () const
 Get the root tree of this parser. More...
 

Detailed Description

A BoostInfoParser reads files in Boost's INFO format and constructs a BoostInfoTree.

Member Function Documentation

const BoostInfoTree& ndn::BoostInfoParser::getRoot ( ) const
inline

Get the root tree of this parser.

Returns
The root BoostInfoTree.
const BoostInfoTree& ndn::BoostInfoParser::read ( const std::string &  fileName)

Add the contents of the file to the root BoostInfoTree.

Parameters
fileNameThe path to the INFO file.
Returns
The new root BoostInfoTree.
const BoostInfoTree& ndn::BoostInfoParser::read ( const std::string &  input,
const std::string &  inputName 
)

Add the contents of the input string to the root BoostInfoTree.

Parameters
inputThe contents of the INFO file, with lines separated by "\n" or "\r\n".
inputNameUsed for log messages, etc.
Returns
The new root BoostInfoTree.
void ndn::BoostInfoParser::write ( const std::string &  fileName) const

Write the root tree of this BoostInfoParser as file in Boost's INFO format.

Parameters
fileNameThe output path.

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