Elaztek Developer Hub
Blamite Game Engine - Strings  00402.09.29.23.0627.blamite
A library containing general purpose utilities and classes for use in multiple projects.
BlamEngineString Class Reference

Class representing a Blamite string. More...

#include <strings.h>

Public Member Functions

bool HasAttribute (std::string id)
 Checks whether the string has a given attribute. More...
 
std::string GetAttribute (std::string id)
 Retrieves the value of a given attribute. More...
 

Public Attributes

std::string id
 The ID of the string. More...
 
std::string text
 The content of the string. More...
 
std::vector< BlamStringAttributeattributes
 The list of attributes present within the string. More...
 

Detailed Description

Class representing a Blamite string.

Member Function Documentation

◆ GetAttribute()

std::string BlamEngineString::GetAttribute ( std::string  id)

Retrieves the value of a given attribute.

Note
You should always call HasAttribute before calling this.
Parameters
id- The attribute to retrieve the value of.
Returns
The value of the attribute. If the attribute was not found, then an empty string is returned.

◆ HasAttribute()

bool BlamEngineString::HasAttribute ( std::string  id)

Checks whether the string has a given attribute.

Parameters
id- The attribute to look for.
Returns
true if the string has the attribute, otherwise returns false.

Member Data Documentation

◆ attributes

std::vector<BlamStringAttribute> BlamEngineString::attributes

The list of attributes present within the string.

◆ id

std::string BlamEngineString::id

The ID of the string.

◆ text

std::string BlamEngineString::text

The content of the string.


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