Money Manager EX
An easy to use, money management application built with wxWidgets
DB_Table_STOCK_V1::Data Struct Reference

Data is a single record in the database table. More...

#include <DB_Table_Stock_V1.h>

+ Collaboration diagram for DB_Table_STOCK_V1::Data:

Public Member Functions

int64 id () const
 
void id (const int64 id)
 
auto operator< (const Data &other) const
 
auto operator< (const Data *other) const
 
bool equals (const Data *r) const
 
 Data (Self *table=nullptr)
 
 Data (wxSQLite3ResultSet &q, Self *table=nullptr)
 
 Data (const Data &other)=default
 
Dataoperator= (const Data &other)
 
template<typename C >
bool match (const C &) const
 
bool match (const Self::STOCKID &in) const
 
bool match (const Self::HELDAT &in) const
 
bool match (const Self::PURCHASEDATE &in) const
 
bool match (const Self::STOCKNAME &in) const
 
bool match (const Self::SYMBOL &in) const
 
bool match (const Self::NUMSHARES &in) const
 
bool match (const Self::PURCHASEPRICE &in) const
 
bool match (const Self::NOTES &in) const
 
bool match (const Self::CURRENTPRICE &in) const
 
bool match (const Self::VALUE &in) const
 
bool match (const Self::COMMISSION &in) const
 
wxString to_json () const
 
void as_json (PrettyWriter< StringBuffer > &json_writer) const
 
row_t to_row_t () const
 
void to_template (html_template &t) const
 
bool save (wxSQLite3Database *db, bool force_insert=false)
 Save the record instance in memory to the database. More...
 
bool remove (wxSQLite3Database *db)
 Remove the record instance from memory and the database. More...
 
void destroy ()
 

Public Attributes

Selftable_
 This is a instance pointer to itself in memory. More...
 
int64 STOCKID
 
int64 HELDAT
 
wxString PURCHASEDATE
 
wxString STOCKNAME
 
wxString SYMBOL
 
double NUMSHARES
 
double PURCHASEPRICE
 
wxString NOTES
 
double CURRENTPRICE
 
double VALUE
 
double COMMISSION
 

Friends

struct DB_Table_STOCK_V1
 

Detailed Description

Data is a single record in the database table.

Constructor & Destructor Documentation

◆ Data() [1/3]

DB_Table_STOCK_V1::Data::Data ( Self table = nullptr)
inlineexplicit

◆ Data() [2/3]

DB_Table_STOCK_V1::Data::Data ( wxSQLite3ResultSet &  q,
Self table = nullptr 
)
inlineexplicit

◆ Data() [3/3]

DB_Table_STOCK_V1::Data::Data ( const Data other)
default

Member Function Documentation

◆ as_json()

void DB_Table_STOCK_V1::Data::as_json ( PrettyWriter< StringBuffer > &  json_writer) const
inline

◆ destroy()

void DB_Table_STOCK_V1::Data::destroy ( )
inline

◆ equals()

bool DB_Table_STOCK_V1::Data::equals ( const Data r) const
inline

◆ id() [1/2]

int64 DB_Table_STOCK_V1::Data::id ( ) const
inline

◆ id() [2/2]

void DB_Table_STOCK_V1::Data::id ( const int64  id)
inline

◆ match() [1/12]

template<typename C >
bool DB_Table_STOCK_V1::Data::match ( const C &  ) const
inline

◆ match() [2/12]

bool DB_Table_STOCK_V1::Data::match ( const Self::STOCKID in) const
inline

◆ match() [3/12]

bool DB_Table_STOCK_V1::Data::match ( const Self::HELDAT in) const
inline

◆ match() [4/12]

bool DB_Table_STOCK_V1::Data::match ( const Self::PURCHASEDATE in) const
inline

◆ match() [5/12]

bool DB_Table_STOCK_V1::Data::match ( const Self::STOCKNAME in) const
inline

◆ match() [6/12]

bool DB_Table_STOCK_V1::Data::match ( const Self::SYMBOL in) const
inline

◆ match() [7/12]

bool DB_Table_STOCK_V1::Data::match ( const Self::NUMSHARES in) const
inline

◆ match() [8/12]

bool DB_Table_STOCK_V1::Data::match ( const Self::PURCHASEPRICE in) const
inline

◆ match() [9/12]

bool DB_Table_STOCK_V1::Data::match ( const Self::NOTES in) const
inline

◆ match() [10/12]

bool DB_Table_STOCK_V1::Data::match ( const Self::CURRENTPRICE in) const
inline

◆ match() [11/12]

bool DB_Table_STOCK_V1::Data::match ( const Self::VALUE in) const
inline

◆ match() [12/12]

bool DB_Table_STOCK_V1::Data::match ( const Self::COMMISSION in) const
inline

◆ operator<() [1/2]

auto DB_Table_STOCK_V1::Data::operator< ( const Data other) const
inline

◆ operator<() [2/2]

auto DB_Table_STOCK_V1::Data::operator< ( const Data other) const
inline

◆ operator=()

Data& DB_Table_STOCK_V1::Data::operator= ( const Data other)
inline

◆ remove()

bool DB_Table_STOCK_V1::Data::remove ( wxSQLite3Database *  db)
inline

Remove the record instance from memory and the database.

◆ save()

bool DB_Table_STOCK_V1::Data::save ( wxSQLite3Database *  db,
bool  force_insert = false 
)
inline

Save the record instance in memory to the database.

◆ to_json()

wxString DB_Table_STOCK_V1::Data::to_json ( ) const
inline

◆ to_row_t()

row_t DB_Table_STOCK_V1::Data::to_row_t ( ) const
inline

◆ to_template()

void DB_Table_STOCK_V1::Data::to_template ( html_template &  t) const
inline

Friends And Related Function Documentation

◆ DB_Table_STOCK_V1

friend struct DB_Table_STOCK_V1
friend

Member Data Documentation

◆ COMMISSION

double DB_Table_STOCK_V1::Data::COMMISSION

◆ CURRENTPRICE

double DB_Table_STOCK_V1::Data::CURRENTPRICE

◆ HELDAT

int64 DB_Table_STOCK_V1::Data::HELDAT

◆ NOTES

wxString DB_Table_STOCK_V1::Data::NOTES

◆ NUMSHARES

double DB_Table_STOCK_V1::Data::NUMSHARES

◆ PURCHASEDATE

wxString DB_Table_STOCK_V1::Data::PURCHASEDATE

◆ PURCHASEPRICE

double DB_Table_STOCK_V1::Data::PURCHASEPRICE

◆ STOCKID

int64 DB_Table_STOCK_V1::Data::STOCKID

◆ STOCKNAME

wxString DB_Table_STOCK_V1::Data::STOCKNAME

◆ SYMBOL

wxString DB_Table_STOCK_V1::Data::SYMBOL

◆ table_

Self* DB_Table_STOCK_V1::Data::table_

This is a instance pointer to itself in memory.

◆ VALUE

double DB_Table_STOCK_V1::Data::VALUE

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