Anope IRC Services  Version 2.0
Public Member Functions | Private Attributes
Configuration::File Class Reference

#include <config.h>

Collaboration diagram for Configuration::File:
Collaboration graph

Public Member Functions

 File (const Anope::string &, bool)
 ~File ()
const Anope::stringGetName () const
bool IsOpen () const
bool Open ()
void Close ()
bool End () const
Anope::string Read ()

Private Attributes

Anope::string name
bool executable
FILE * fp

Detailed Description

Represents a configuration file

Definition at line 73 of file config.h.

Constructor & Destructor Documentation

◆ File()

File::File ( const Anope::string n,
bool  e 

Definition at line 638 of file config.cpp.

◆ ~File()

File::~File ( )

Definition at line 642 of file config.cpp.

References Close().

Member Function Documentation

◆ Close()

void File::Close ( )

Definition at line 664 of file config.cpp.

References executable, and fp.

Referenced by Configuration::Conf::LoadConf(), Open(), and ~File().

◆ End()

bool File::End ( ) const

Definition at line 676 of file config.cpp.

References fp, and IsOpen().

Referenced by Configuration::Conf::LoadConf(), and Read().

◆ GetName()

const Anope::string & File::GetName ( ) const

Definition at line 647 of file config.cpp.

References name.

Referenced by Anope::Init(), and Configuration::Conf::LoadConf().

◆ IsOpen()

bool File::IsOpen ( ) const

Definition at line 652 of file config.cpp.

References fp.

Referenced by End().

◆ Open()

bool File::Open ( )

Definition at line 657 of file config.cpp.

References Anope::string::c_str(), Close(), Anope::ConfigDir, executable, fp, and name.

Referenced by Configuration::Conf::LoadConf().

◆ Read()

Anope::string File::Read ( )

Definition at line 681 of file config.cpp.

References BUFSIZE, End(), and fp.

Referenced by Configuration::Conf::LoadConf().

Field Documentation

◆ executable

bool Configuration::File::executable

Definition at line 76 of file config.h.

Referenced by Close(), and Open().

◆ fp

FILE* Configuration::File::fp

Definition at line 77 of file config.h.

Referenced by Close(), End(), IsOpen(), Open(), and Read().

◆ name

Anope::string Configuration::File::name

Definition at line 75 of file config.h.

Referenced by GetName(), and Open().

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