chrono::ChEnumMapperBase Class Referenceabstract

Description

Class for mapping enums to ChNameValue pairs that contain a 'readable' ascii string of the selected enum.

This could be used when streaming from/to human readable formats such as JSON or XML or ascii dumps.

#include <ChArchive.h>

Inherited by chrono::ChEnumMapper< Te >.

Public Member Functions

virtual int GetValueAsInt ()=0
 
virtual void SetValueAsInt (const int mval)=0
 
virtual std::string GetValueAsString ()=0
 
virtual bool SetValueAsString (const std::string &mname)=0