Ult3D
Implementation of "Ultimate 3D Game Engine Design & Architecture" by Allan Sherrod
Loading...
Searching...
No Matches
Ult::PropertyScript Class Reference

#include <PropertyScript.h>

Public Member Functions

 PropertyScript ()
 
 ~PropertyScript ()
 
bool Load (const char *fileName)
 
bool GetPropertyValue (const std::string &property, std::string *val)
 

Detailed Description

A script containing a list of properties.

Constructor & Destructor Documentation

◆ PropertyScript()

Ult::PropertyScript::PropertyScript ( )

PropertyScript constructor.

◆ ~PropertyScript()

Ult::PropertyScript::~PropertyScript ( )

PropertyScript destructor.

Member Function Documentation

◆ GetPropertyValue()

bool Ult::PropertyScript::GetPropertyValue ( const std::string & property,
std::string * val )

Search for the input property and store its value into val.

Returns
True if val is not null and the property was found, false otherwise.

◆ Load()

bool Ult::PropertyScript::Load ( const char * fileName)

Read and parse properties from the file given by fileName.

Returns
True if successfully opened and parsed the file, false otherise.

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