xdrpp
RFC4506 XDR compiler and message library
Public Member Functions | Public Attributes | List of all members
xdr::IniLine Class Reference

Contents of a specific property. More...

#include <iniparse.h>

Collaboration diagram for xdr::IniLine:
Collaboration graph
[legend]

Public Member Functions

std::ostream & warn () const
 Print a message to cerr with the file ane line number prefixed.
 
std::ostream & fail () const
 Like IniLine::warn, but also sets the error flag to indicate failure.
 
bool error () const
 Returns true if there has been a parsing error in the ini file.
 
std::vector< string > argv () const
 Transform the line into a vector of words.
 
template<typename T >
void convert (T *rp) const
 Convert the line into a value of a type for which a from_string function has been defined. More...
 

Public Attributes

int lineno_ {0}
 
string file_
 
string group_
 Name of the group containing property.
 
string key_
 Key of the property.
 
string value_
 Value of the property. More...
 
string rawvalue_
 Raw value of the property (with escape sequences unexpanded).
 

Detailed Description

Contents of a specific property.

Definition at line 67 of file iniparse.h.

Member Function Documentation

◆ convert()

template<typename T >
void xdr::IniLine::convert ( T *  rp) const
inline

Convert the line into a value of a type for which a from_string function has been defined.

Definition at line 92 of file iniparse.h.

Member Data Documentation

◆ value_

string xdr::IniLine::value_

Value of the property.

Definition at line 75 of file iniparse.h.


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