Core Library  1.7.0.0
Library containing core utilities and tools for threading, networking, logging, INI and CSV file management etc.
core_lib::ini_file::if_private::SectionLine Class Reference

Class to manage a section header line in an INI file. More...

#include <IniFileLines.h>

Inheritance diagram for core_lib::ini_file::if_private::SectionLine:
core_lib::ini_file::if_private::Line

Public Member Functions

 SectionLine ()=default
 Default constructor.
 
 SectionLine (const SectionLine &)=default
 Copy constructor.
 
 SectionLine (const std::string &section)
 Initialising constructor.
 
 ~SectionLine () override=default
 Virtual destructor.
 
SectionLineoperator= (const SectionLine &)=default
 Copy assignment operator.
 
 SectionLine (SectionLine &&)=default
 Move constructor.
 
SectionLineoperator= (SectionLine &&)=default
 Move assignment operator.
 
const std::string & Section () const
 Get the section. More...
 
void Print (std::ostream &os, bool addLineFeed=true) const override
 Virtual Print function. More...
 
- Public Member Functions inherited from core_lib::ini_file::if_private::Line
 Line (Line const &)=default
 
 Line (Line &&)=default
 
Lineoperator= (Line const &)=default
 
Lineoperator= (Line &&)=default
 

Private Attributes

std::string m_section {}
 The section.
 

Detailed Description

Class to manage a section header line in an INI file.

Member Function Documentation

◆ Print()

void core_lib::ini_file::if_private::SectionLine::Print ( std::ostream &  os,
bool  addLineFeed = true 
) const
overridevirtual

Virtual Print function.

Parameters
[in,out]os- Stream to write to.
[in]addLineFeed- (Optional) add a line feed.

Implements core_lib::ini_file::if_private::Line.

◆ Section()

const std::string & core_lib::ini_file::if_private::SectionLine::Section ( ) const

Get the section.

Returns
The section.

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