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

INI Utility Class. More...

#include <IniUtil.h>

Public Types

using InputStream = io::PeekableStream
 
using OutputStream = io::OutputStream
 
using IniConfigObject = std::unique_ptr<IniConfig>
 

Static Public Member Functions

static IniConfigObject parse (InputStream *input) noexcept
 
static bool unparse (const IniConfigObject &target, OutputStream *output) noexcept
 

Static Protected Member Functions

static bool unparsePair (const std::pair< std::string, std::string > &pair, OutputStream *output) noexcept
 

Detailed Description

INI Utility Class.

Member Typedef Documentation

◆ IniConfigObject

◆ InputStream

◆ OutputStream

Member Function Documentation

◆ parse()

IniUtil::IniConfigObject IniUtil::parse ( IniUtil::InputStream * input)
staticnoexcept

Parse an INI CONFIG object from a peekable stream

Parameters
inputPeekable stream to be processed
Returns
INI CONFIG object

◆ unparse()

bool IniUtil::unparse ( const IniConfigObject & target,
IniUtil::OutputStream * output )
staticnoexcept

Write an INI CONFIG object to a stream

Parameters
targetINI CONFIG to be written
outputStream to output
Returns
Whether the operation is successful

References ASSERT_WRITE.

◆ unparsePair()

bool IniUtil::unparsePair ( const std::pair< std::string, std::string > & pair,
OutputStream * output )
staticprotectednoexcept

References ASSERT_WRITE.


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