Richard Boegli's CnC_Generals_Zero_Hour Fork WIP
This is documentation of Richard Boegil's Zero Hour Fork
 
Loading...
Searching...
No Matches
DazzleINIClass Class Reference

Inherits INIClass.

Public Member Functions

 DazzleINIClass (FileClass &file)
 
const Vector2 Get_Vector2 (char const *section, char const *entry, const Vector2 &defvalue=Vector2(0, 0))
 
const Vector3 Get_Vector3 (char const *section, char const *entry, const Vector3 &defvalue=Vector3(0, 0, 0))
 
const Vector4 Get_Vector4 (char const *section, char const *entry, const Vector4 &defvalue=Vector4(0, 0, 0, 0)) const
 
- Public Member Functions inherited from INIClass
 INIClass (void)
 
 INIClass (FileClass &file)
 
 INIClass (const char *filename)
 
virtual ~INIClass (void)
 
int Load (FileClass &file)
 
int Load (Straw &file)
 
int Load (const char *filename)
 
int Save (FileClass &file) const
 
int Save (Pipe &file) const
 
int Save (const char *filename) const
 
const char * Get_Filename (void) const
 
bool Clear (char const *section=NULL, char const *entry=NULL)
 
bool Is_Loaded (void) const
 
int Size (void) const
 
bool Is_Present (char const *section, char const *entry=NULL) const
 
int Section_Count (void) const
 
bool Section_Present (char const *section) const
 
int Entry_Count (char const *section) const
 
char const * Get_Entry (char const *section, int index) const
 
unsigned Enumerate_Entries (const char *section, const char *entry_prefix, unsigned startnumber=0, unsigned endnumber=(unsigned) -1)
 
PKey Get_PKey (bool fast) const
 
bool Get_Bool (char const *section, char const *entry, bool defvalue=false) const
 
float Get_Float (char const *section, char const *entry, float defvalue=0.0f) const
 
double Get_Double (char const *section, char const *entry, double defvalue=0.0) const
 
int Get_Hex (char const *section, char const *entry, int defvalue=0) const
 
int Get_Int (char const *section, char const *entry, int defvalue=0) const
 
int Get_String (char const *section, char const *entry, char const *defvalue, char *buffer, int size) const
 
const StringClassGet_String (StringClass &new_string, char const *section, char const *entry, char const *defvalue="") const
 
const WideStringClassGet_Wide_String (WideStringClass &new_string, char const *section, char const *entry, wchar_t const *defvalue=L"") const
 
int Get_List_Index (char const *section, char const *entry, int const defvalue, char *list[])
 
int * Get_Alloc_Int_Array (char const *section, char const *entry, int listend)
 
int Get_Int_Bitfield (char const *section, char const *entry, int defvalue, char *list[])
 
char * Get_Alloc_String (char const *section, char const *entry, char const *defvalue) const
 
int Get_TextBlock (char const *section, char *buffer, int len) const
 
int Get_UUBlock (char const *section, void *buffer, int len) const
 
int Get_UUBlock (char const *section, char const *entry, void *block, int len) const
 
TRect< int > const Get_Rect (char const *section, char const *entry, TRect< int > const &defvalue) const
 
TPoint3D< int > const Get_Point (char const *section, char const *entry, TPoint3D< int > const &defvalue) const
 
TPoint2D< int > const Get_Point (char const *section, char const *entry, TPoint2D< int > const &defvalue) const
 
TPoint3D< float > const Get_Point (char const *section, char const *entry, TPoint3D< float > const &defvalue) const
 
TPoint2D< float > const Get_Point (char const *section, char const *entry, TPoint2D< float > const &defvalue) const
 
bool Put_Bool (char const *section, char const *entry, bool value)
 
bool Put_Float (char const *section, char const *entry, float number)
 
bool Put_Double (char const *section, char const *entry, double number)
 
bool Put_Hex (char const *section, char const *entry, int number)
 
bool Put_Int (char const *section, char const *entry, int number, int format=0)
 
bool Put_PKey (PKey const &key)
 
bool Put_String (char const *section, char const *entry, char const *string)
 
bool Put_TextBlock (char const *section, char const *text)
 
bool Put_UUBlock (char const *section, void const *block, int len)
 
bool Put_UUBlock (char const *section, char const *entry, void const *block, int len)
 
bool Put_Rect (char const *section, char const *entry, TRect< int > const &value)
 
bool Put_Point (char const *section, char const *entry, TPoint3D< int > const &value)
 
bool Put_Point (char const *section, char const *entry, TPoint3D< float > const &value)
 
bool Put_Point (char const *section, char const *entry, TPoint2D< int > const &value)
 
bool Put_Wide_String (char const *section, char const *entry, wchar_t const *string)
 
List< INISection * > & Get_Section_List ()
 
IndexClass< int, INISection * > & Get_Section_Index ()
 
INISectionFind_Section (char const *section) const
 
INIEntryFind_Entry (char const *section, char const *entry) const
 
void DuplicateCRCError (const char *message, const char *section, const char *entry)
 

Additional Inherited Members

- Static Public Member Functions inherited from INIClass
static void Keep_Blank_Entries (bool keep_blanks)
 
static void Strip_Comments (char *buffer)
 
static int CRC (const char *string)
 
- Static Public Attributes inherited from INIClass
static const int MAX_LINE_LENGTH = 4096
 

Detailed Description

Definition at line 294 of file dazzle.cpp.

Constructor & Destructor Documentation

◆ DazzleINIClass()

DazzleINIClass::DazzleINIClass ( FileClass & file)
inline

Definition at line 296 of file dazzle.cpp.

Member Function Documentation

◆ Get_Vector2()

const Vector2 DazzleINIClass::Get_Vector2 ( char const * section,
char const * entry,
const Vector2 & defvalue = Vector2(0,0) )

Definition at line 302 of file dazzle.cpp.

◆ Get_Vector3()

const Vector3 DazzleINIClass::Get_Vector3 ( char const * section,
char const * entry,
const Vector3 & defvalue = Vector3(0,0,0) )

Definition at line 316 of file dazzle.cpp.

◆ Get_Vector4()

const Vector4 DazzleINIClass::Get_Vector4 ( char const * section,
char const * entry,
const Vector4 & defvalue = Vector4(0,0,0,0) ) const

Definition at line 330 of file dazzle.cpp.


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