ALox  V. 2402 R. 0
Home ALox for C++ ALox for C# ALox for Java Download
Public Fields | Public Methods | Protected Fields | Protected Methods | List of all members
InMemoryPlugin.Section Class Reference
Inheritance diagram for InMemoryPlugin.Section:
[legend]
Collaboration diagram for InMemoryPlugin.Section:
[legend]

Class Description


A configuration section

Public Fields

AString Comments = new AString()
 The comments of the section.
 
List< EntryEntries = new List<Entry>()
 The list of variables of the section.
 
AString Name = new AString()
 The name of the section.
 

Public Methods

 Section (Object name)
 
bool DeleteEntry (Object name)
 
Entry GetEntry (Object name, bool create)
 

Protected Fields

Tokenizer tmpTknzr = new Tokenizer()
 A reusable tokenizer.
 
Variable tmpVar = new Variable()
 A reusable variable.
 

Protected Methods

virtual Entry createEntry (Object name)
 

Constructor & Destructor Documentation

◆ Section()

Section ( Object  name)
inline

Constructs a Section

Parameters
nameThe name of the section. (AString compatible type expected.)

Member Function Documentation

◆ createEntry()

virtual Entry createEntry ( Object  name)
inlineprotectedvirtual

Virtual method to create an Entry. (Provided to allow descendant classes to created extended versions of an entry. See also InMemoryPlugin.createSection.)

Parameters
nameThe name of the entry.
Returns
An object of type InMemoryPlugin.Entry.

Reimplemented in IniFile.Section.

◆ DeleteEntry()

bool DeleteEntry ( Object  name)
inline

Deletes an entry (if exists)

Parameters
nameThe name of the variable to be searched.
Returns
true if the entry was found and deleted, false otherwise.

◆ GetEntry()

Entry GetEntry ( Object  name,
bool  create 
)
inline

Searches an entry with the given name. The search is performed case insensitive

Parameters
nameThe name of the variable to be searched.
createDenotes if an entry should be created if not found.
Returns
The variable if found, else null.

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