|
Devel Lib
|
A class representing a JSON field name. More...
#include <JsonFieldName.h>
Public Member Functions | |
| CJsonFieldName (const char *i_pName) | |
| Constructs a CJsonFieldName object with a C-style string. More... | |
| CJsonFieldName (const std::string_view i_stName) | |
| Constructs a CJsonFieldName object with a std::string_view. More... | |
| CJsonFieldName (const CJsonFieldName &i_oOther)=default | |
| Copy constructor for CJsonFieldName. More... | |
| CJsonFieldName (CJsonFieldName &&i_oOther) noexcept | |
| Move constructor for CJsonFieldName. More... | |
| ~CJsonFieldName ()=default | |
| Destructor for CJsonFieldName. | |
| CJsonFieldName & | operator= (const CJsonFieldName &i_oOther) |
| Copy assignment operator for CJsonFieldName. More... | |
| CJsonFieldName & | operator= (CJsonFieldName &&i_oOther) |
| Move assignment operator for CJsonFieldName. More... | |
| const char * | name () const |
| Retrieves the underlying name string. More... | |
A class representing a JSON field name.
This class encapsulates a JSON field name and provides access to the underlying name string.
Example
This class represents a JSON field name and provides access to the underlying name string.
Here is an example of how to use the CJsonFieldName class:
|
inlineexplicit |
Constructs a CJsonFieldName object with a C-style string.
| i_pName | The C-style string representing the field name. |
|
inlineexplicit |
Constructs a CJsonFieldName object with a std::string_view.
| i_stName | The std::string_view representing the field name. |
|
default |
Copy constructor for CJsonFieldName.
| i_oOther | The CJsonFieldName object to be copied. |
|
inlinenoexcept |
Move constructor for CJsonFieldName.
| i_oOther | The CJsonFieldName object to be moved. |
|
inline |
Retrieves the underlying name string.
|
inline |
Move assignment operator for CJsonFieldName.
| i_oOther | The CJsonFieldName object to be moved. |
|
inline |
Copy assignment operator for CJsonFieldName.
| i_oOther | The CJsonFieldName object to be assigned. |