|
ocpp 0.24.1
A C++ implementation of the Open Charge Point Protocol
|
Contains a String impementation with a maximum length. More...
#include <string.hpp>
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. | |
Contains a String impementation with a maximum length.
|
inline |
Provides a std::string representation of the string.