1#ifndef LS_CUSTOM_FIELD_H
2#define LS_CUSTOM_FIELD_H
7#pragma warning( disable : 4251 )
26 CustomField(
const std::string& name,
const std::string& value )
33 const std::string&
fieldName()
const {
return m_name; };
41 const std::string&
fieldValue()
const {
return m_value; };
#define LS_API
Macros that expands to dllexport, dllimport or nothing on non Windows platforms or in case of static ...
Class for storing key-value data field.
const std::string & fieldValue() const
Getter method for data field value.
void setFieldValue(const std::string &value)
Setter method for data field value.
CustomField()=default
Default constructor, creates empty data field.
void setFieldName(const std::string &name)
Setter method for data field name.
CustomField(const std::string &name, const std::string &value)
Constructs data field with given name (key) and value.
const std::string & fieldName() const
Getter method for data field name.