Sese Framework  2.3.0
A cross-platform framework
Loading...
Searching...
No Matches
sese::ConfigUtil Class Reference

Traditional configuration file utility. More...

#include <ConfigUtil.h>

Public Types

using InputStream = io::InputStream
 
using OutputStream = io::OutputStream
 

Static Public Member Functions

static ConfigObject::Ptr readFrom (InputStream *input)
 
static bool write2 (const ConfigObject::Ptr &config_file, OutputStream *output)
 

Static Private Member Functions

static std::string readLine (InputStream *input)
 

Detailed Description

Traditional configuration file utility.

Member Typedef Documentation

◆ InputStream

◆ OutputStream

Member Function Documentation

◆ readFrom()

static ConfigObject::Ptr sese::ConfigUtil::readFrom ( InputStream * input)
static

Reads the configuration file

Parameters
inputThe input stream of the configuration file
Returns
A pointer to the configuration file class, returns nullptr if reading fails

◆ readLine()

static std::string sese::ConfigUtil::readLine ( InputStream * input)
staticprivate

◆ write2()

static bool sese::ConfigUtil::write2 ( const ConfigObject::Ptr & config_file,
OutputStream * output )
static

Writes the configuration to the file

Parameters
config_fileThe specific configuration
outputThe output stream of the configuration file
Returns
Whether the write operation was successful

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