ocpp 0.24.1
A C++ implementation of the Open Charge Point Protocol
Public Member Functions | List of all members
ocpp::String< L > Class Template Reference

Contains a String impementation with a maximum length. More...

#include <string.hpp>

Inheritance diagram for ocpp::String< L >:
ocpp::CiString< 36 > ocpp::CiString< 128 > ocpp::CiString< 40 > ocpp::CiString< 20 > ocpp::CiString< 10000 > ocpp::CiString< 50 > ocpp::CiString< 500 > ocpp::CiString< 255 > ocpp::CiString< 512 > ocpp::CiString< 5500 > ocpp::CiString< 800 > ocpp::CiString< 2500 > ocpp::CiString< 5600 > ocpp::CiString< ISO15118_GET_EV_CERTIFICATE_EXI_RESPONSE_SIZE > ocpp::CiString< 32 > ocpp::CiString< 1000 > ocpp::CiString< L >

Public Member Functions

 String (const std::string &data, StringTooLarge to_large=StringTooLarge::Throw)
 Creates a string from the given data.
 
 String (const char *data, StringTooLarge to_large=StringTooLarge::Throw)
 
 String ()=default
 Creates a string.
 
std::string get () const
 Provides a std::string representation of the string. More...
 
void set (const std::string &data, StringTooLarge to_large=StringTooLarge::Throw)
 Sets the content of the string to the given data.
 
bool is_valid (std::string_view data)
 Override this to check for a specific format.
 
 operator std::string ()
 Conversion operator to turn a String into std::string.
 

Detailed Description

template<size_t L>
class ocpp::String< L >

Contains a String impementation with a maximum length.

Member Function Documentation

◆ get()

template<size_t L>
std::string ocpp::String< L >::get ( ) const
inline

Provides a std::string representation of the string.

Returns
a std::string

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