aegis.cpp
 All Classes Functions Variables Typedefs Enumerations Enumerator Friends Pages
Public Member Functions | Friends | List of all members
aegis::gateway::objects::field Struct Reference

#include <field.hpp>

Public Member Functions

 field (std::string n, std::string v)
 
 field (std::string n, std::string v, bool il)
 
fieldname (const std::string &str)
 Sets the name of the field. More...
 
fieldvalue (const std::string &str)
 Sets the value of the field. More...
 
fieldis_inline (const bool b)
 Sets whether the field is inline. More...
 
std::string & name () noexcept
 Get the name of the field.
 
std::string & value () noexcept
 Get the value of the field.
 
bool & is_inline () noexcept
 Get whether the field is inline.
 

Friends

void from_json (const nlohmann::json &j, field &m)
 
void to_json (nlohmann::json &j, const field &m)
 

Detailed Description

Todo:
Needs documentation

Member Function Documentation

field& aegis::gateway::objects::field::is_inline ( const bool  b)

Sets whether the field is inline.

Parameters
bIs inline or not
field& aegis::gateway::objects::field::name ( const std::string &  str)

Sets the name of the field.

Parameters
strUrl to set
field& aegis::gateway::objects::field::value ( const std::string &  str)

Sets the value of the field.

Parameters
strValue to set

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