A BoostInfoParser reads files in Boost's INFO format and constructs a BoostInfoTree.
More...
#include <boost-info-parser.hpp>
A BoostInfoParser reads files in Boost's INFO format and constructs a BoostInfoTree.
const BoostInfoTree& ndn::BoostInfoParser::read |
( |
const std::string & |
fileName | ) |
|
Add the contents of the file to the root BoostInfoTree.
- Parameters
-
fileName | The 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
-
input | The contents of the INFO file, with lines separated by "\n" or "\r\n". |
inputName | Used 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
-
The documentation for this class was generated from the following files: