GnuCashew ~ Web Application compatible with GnuCash sql data files.
GCW
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | List of all members
GCW::Dbo::Vars::Item Class Reference

Variables Item Class. More...

#include <Vars.h>

+ Inheritance diagram for GCW::Dbo::Vars::Item:

Public Member Functions

const std::string & keyField () const
 
const std::string & cfyField () const
 
const std::string & varField () const
 
void setKeyField (const std::string &_value)
 
void setCfyField (const std::string &_value)
 
void setVarField (const std::string &_value)
 
std::string getVarString (const std::string &_field) const
 
int getVarInt (const std::string &_field) const
 
void setVar (const std::string &_field, const char *_value)
 
void setVar (const std::string &_field, const Wt::WString &_value)
 
void setVar (const std::string &_field, const std::string &_value)
 
void setVar (const std::string &_field, int _value)
 
template<class Action >
void persist (Action &action)
 
- Public Member Functions inherited from GCW::Dbo::BaseItem< Item >
 BaseItem ()
 
- Public Member Functions inherited from Wt::Dbo::Dbo< class C >
 Dbo ()
 
 Dbo (const Dbo< C > &other)
 
dbo_traits< C >::IdType id () const
 
Sessionsession () const
 
void setDirty ()
 
bool isDirty () const
 
ptr< Cself () const
 

Private Attributes

std::string m_keyField
 
std::string m_cfyField
 
std::string m_varField
 

Additional Inherited Members

- Public Types inherited from GCW::Dbo::BaseItem< Item >
using Ptr = Wt::Dbo::ptr< Item >
 
using Collection = Wt::Dbo::collection< Ptr >
 
using Vector = std::vector< Ptr >
 

Detailed Description

Variables Item Class.

Definition at line 34 of file Vars.h.

Member Function Documentation

◆ cfyField()

const std::string & GCW::Dbo::Vars::Item::cfyField ( ) const
inline

Definition at line 40 of file Vars.h.

References m_cfyField.

◆ getVarInt()

auto GCW::Dbo::Vars::Item::getVarInt ( const std::string &  _field) const

Definition at line 119 of file Vars.cpp.

References Wt::Json::Object::get(), Wt::Json::Value::orIfNull(), and Wt::Json::parse().

◆ getVarString()

auto GCW::Dbo::Vars::Item::getVarString ( const std::string &  _field) const

Definition at line 94 of file Vars.cpp.

References Wt::Json::Object::get(), Wt::Json::Value::orIfNull(), and Wt::Json::parse().

◆ keyField()

const std::string & GCW::Dbo::Vars::Item::keyField ( ) const
inline

Definition at line 39 of file Vars.h.

References m_keyField.

◆ persist()

template<class Action >
void GCW::Dbo::Vars::Item::persist ( Action &  action)
inline

◆ setCfyField()

void GCW::Dbo::Vars::Item::setCfyField ( const std::string &  _value)
inline

Definition at line 44 of file Vars.h.

References m_cfyField.

◆ setKeyField()

void GCW::Dbo::Vars::Item::setKeyField ( const std::string &  _value)
inline

Definition at line 43 of file Vars.h.

References m_keyField.

◆ setVar() [1/4]

auto GCW::Dbo::Vars::Item::setVar ( const std::string &  _field,
const char *  _value 
)

Definition at line 144 of file Vars.cpp.

◆ setVar() [2/4]

auto GCW::Dbo::Vars::Item::setVar ( const std::string &  _field,
const std::string &  _value 
)

Definition at line 160 of file Vars.cpp.

References Wt::Json::parse(), and Wt::Json::serialize().

◆ setVar() [3/4]

auto GCW::Dbo::Vars::Item::setVar ( const std::string &  _field,
const Wt::WString _value 
)

Definition at line 152 of file Vars.cpp.

◆ setVar() [4/4]

auto GCW::Dbo::Vars::Item::setVar ( const std::string &  _field,
int  _value 
)

Definition at line 188 of file Vars.cpp.

References Wt::Json::parse(), and Wt::Json::serialize().

◆ setVarField()

void GCW::Dbo::Vars::Item::setVarField ( const std::string &  _value)
inline

Definition at line 45 of file Vars.h.

References m_varField.

◆ varField()

const std::string & GCW::Dbo::Vars::Item::varField ( ) const
inline

Definition at line 41 of file Vars.h.

References m_varField.

Member Data Documentation

◆ m_cfyField

std::string GCW::Dbo::Vars::Item::m_cfyField
private

Definition at line 64 of file Vars.h.

Referenced by cfyField(), persist(), and setCfyField().

◆ m_keyField

std::string GCW::Dbo::Vars::Item::m_keyField
private

Definition at line 63 of file Vars.h.

Referenced by keyField(), persist(), and setKeyField().

◆ m_varField

std::string GCW::Dbo::Vars::Item::m_varField
private

Definition at line 65 of file Vars.h.

Referenced by persist(), setVarField(), and varField().


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