Annwvyn::AnnSaveDataInterpretor Class Referenceabstract

Interface class to switch from text to useful data. More...

#include <AnnFilesystem.hpp>

Collaboration diagram for Annwvyn::AnnSaveDataInterpretor:

Public Member Functions

virtual ~AnnSaveDataInterpretor ()=default
 Default destructor. More...
 
 AnnSaveDataInterpretor (std::shared_ptr< AnnSaveFileData > data)
 FileInterpetor. More...
 
float stringToFloat (std::string text) const
 Get a float from this string. More...
 
int stringToInt (std::string text) const
 Get a int from this string. More...
 
float keyStringToFloat (std::string key) const
 Extract a float from the data-object stored at the given key. More...
 
int keyStringToInt (std::string key) const
 Extract a int from the data-object stored at the given key. More...
 
AnnVect3 keyStringToVect3 (std::string key) const
 Extract a Vector3 from the data-object stored at the given key. More...
 
AnnQuaternion keyStringToQuaternion (std::string key) const
 Extract a quaternion from the data-object stored at the given key. More...
 
virtual void extract ()=0
 Overload this method with. More...
 

Protected Attributes

AnnSaveFileDataPtr dataObject
 Object. More...
 

Detailed Description

Interface class to switch from text to useful data.

Definition at line 176 of file AnnFilesystem.hpp.

Constructor & Destructor Documentation

◆ ~AnnSaveDataInterpretor()

virtual Annwvyn::AnnSaveDataInterpretor::~AnnSaveDataInterpretor ( )
virtualdefault

Default destructor.

◆ AnnSaveDataInterpretor()

AnnSaveDataInterpretor::AnnSaveDataInterpretor ( std::shared_ptr< AnnSaveFileData data)

FileInterpetor.

Definition at line 305 of file AnnFilesystem.cpp.

Member Function Documentation

◆ extract()

virtual void Annwvyn::AnnSaveDataInterpretor::extract ( )
pure virtual

Overload this method with.

◆ keyStringToFloat()

float AnnSaveDataInterpretor::keyStringToFloat ( std::string  key) const

Extract a float from the data-object stored at the given key.

Definition at line 320 of file AnnFilesystem.cpp.

Here is the call graph for this function:

◆ keyStringToInt()

int AnnSaveDataInterpretor::keyStringToInt ( std::string  key) const

Extract a int from the data-object stored at the given key.

Definition at line 325 of file AnnFilesystem.cpp.

Here is the call graph for this function:

◆ keyStringToQuaternion()

AnnQuaternion AnnSaveDataInterpretor::keyStringToQuaternion ( std::string  key) const

Extract a quaternion from the data-object stored at the given key.

Definition at line 345 of file AnnFilesystem.cpp.

Here is the call graph for this function:

◆ keyStringToVect3()

AnnVect3 AnnSaveDataInterpretor::keyStringToVect3 ( std::string  key) const

Extract a Vector3 from the data-object stored at the given key.

Definition at line 330 of file AnnFilesystem.cpp.

Here is the call graph for this function:

◆ stringToFloat()

float AnnSaveDataInterpretor::stringToFloat ( std::string  text) const

Get a float from this string.

Definition at line 310 of file AnnFilesystem.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ stringToInt()

int AnnSaveDataInterpretor::stringToInt ( std::string  text) const

Get a int from this string.

Definition at line 315 of file AnnFilesystem.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ dataObject

AnnSaveFileDataPtr Annwvyn::AnnSaveDataInterpretor::dataObject
protected

Object.

Definition at line 205 of file AnnFilesystem.hpp.


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