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
[legend]

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 ( const Anope::string n,
bool  e 
)

Definition at line 638 of file config.cpp.

File::~File ( )

Definition at line 642 of file config.cpp.

References Close().

Member Function Documentation

void File::Close ( )

Definition at line 664 of file config.cpp.

References executable, and fp.

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

bool File::End ( ) const

Definition at line 676 of file config.cpp.

References fp, and IsOpen().

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

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

Definition at line 647 of file config.cpp.

References name.

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

bool File::IsOpen ( ) const

Definition at line 652 of file config.cpp.

References fp.

Referenced by End().

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().

Anope::string File::Read ( )

Definition at line 681 of file config.cpp.

References BUFSIZE, End(), and fp.

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

Field Documentation

bool Configuration::File::executable
private

Definition at line 76 of file config.h.

Referenced by Close(), and Open().

FILE* Configuration::File::fp
private

Definition at line 77 of file config.h.

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

Anope::string Configuration::File::name
private

Definition at line 75 of file config.h.

Referenced by GetName(), and Open().


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