lintel 0.2.0
Loading...
Searching...
No Matches
Static Public Member Functions | List of all members
lintel::StringifyService< T > Class Template Reference

#include <StringifyService.h>

Static Public Member Functions

static std::string serializeToString (const T &value)
 
static T deserializeFromString (const std::string &string)
 

Detailed Description

template<class T>
class lintel::StringifyService< T >

Utility for serializing values to strings and deserializing strings back to values.

Member Function Documentation

◆ deserializeFromString()

template<class T >
static T lintel::StringifyService< T >::deserializeFromString ( const std::string &  string)
inlinestatic

Deserialize a value from its string representation.

Template Parameters
Tthe value type
Parameters
stringthe string to deserialize
Returns
the deserialized value

◆ serializeToString()

template<class T >
static std::string lintel::StringifyService< T >::serializeToString ( const T &  value)
inlinestatic

Serialize a value to its string representation.

Template Parameters
Tthe value type
Parameters
valuethe value to serialize
Returns
the string representation

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