1.3.2
CCC
 
DbStringFormat Class Reference

#include <DbStringFormat.hpp>

Inheritance diagram for DbStringFormat:
AStringable AStringFormat

Public Member Functions

 DbStringFormat (unsigned char params=FLAG_RESUME|FLAG_VARS, const VectorString &names=VectorString(), const VectorInt &cols=VectorInt(), bool useSel=true)
 
 DbStringFormat (const DbStringFormat &r)
 
DbStringFormatoperator= (const DbStringFormat &r)
 
virtual ~DbStringFormat ()
 
virtual String toString (const AStringFormat *strfmt=nullptr) const override
 Interface to AStringable. More...
 
const VectorIntgetCols () const
 
bool getUseSel () const
 
int getMode () const
 
unsigned char getParams () const
 
const VectorStringgetNames () const
 
void setCols (const VectorInt &cols)
 
void setUseSel (bool useSel)
 
void setMode (int mode)
 
void setNames (const VectorString &names)
 
void setParams (unsigned char params)
 
void setFlags (bool flag_resume=true, bool flag_vars=true, bool flag_extend=false, bool flag_stats=false, bool flag_array=false, bool flag_locator=false, const VectorString &names=VectorString(), const VectorInt &cols=VectorInt(), bool useSel=true)
 
void setResume ()
 
void setVars ()
 
void setExtend ()
 
void setStats ()
 
void setArray ()
 
void setLocator ()
 
bool matchResume () const
 
bool matchVars () const
 
bool matchExtend () const
 
bool matchStats () const
 
bool matchArray () const
 
bool matchLocator () const
 
- Public Member Functions inherited from AStringable
 AStringable ()
 
 AStringable (const AStringable &r)
 
AStringableoperator= (const AStringable &r)
 
virtual ~AStringable ()
 
virtual void display (const AStringFormat *strfmt=nullptr) const final
 
virtual void display (int level) const final
 
- Public Member Functions inherited from AStringFormat
 AStringFormat (int level=1)
 
 AStringFormat (const AStringFormat &r)
 
AStringFormatoperator= (const AStringFormat &r)
 
virtual ~AStringFormat ()
 
int getLevel () const
 

Static Public Member Functions

static DbStringFormatcreate (unsigned char params=FLAG_RESUME|FLAG_VARS, const VectorString &names=VectorString(), const VectorInt &cols=VectorInt(), bool useSel=true)
 
static DbStringFormatcreateFromKeys (unsigned char params, const VectorString &names, const VectorInt &cols, bool useSel)
 
static DbStringFormatcreateFromFlags (bool flag_resume=true, bool flag_vars=true, bool flag_extend=false, bool flag_stats=false, bool flag_array=false, bool flag_locator=false, const VectorString &names=VectorString(), const VectorInt &cols=VectorInt(), bool useSel=true)
 

Constructor & Destructor Documentation

◆ DbStringFormat() [1/2]

DbStringFormat::DbStringFormat ( unsigned char  params = FLAG_RESUME | FLAG_VARS,
const VectorString names = VectorString(),
const VectorInt cols = VectorInt(),
bool  useSel = true 
)

◆ DbStringFormat() [2/2]

DbStringFormat::DbStringFormat ( const DbStringFormat r)

◆ ~DbStringFormat()

DbStringFormat::~DbStringFormat ( )
virtual

Member Function Documentation

◆ create()

DbStringFormat * DbStringFormat::create ( unsigned char  params = FLAG_RESUME | FLAG_VARS,
const VectorString names = VectorString(),
const VectorInt cols = VectorInt(),
bool  useSel = true 
)
static

◆ createFromFlags()

DbStringFormat * DbStringFormat::createFromFlags ( bool  flag_resume = true,
bool  flag_vars = true,
bool  flag_extend = false,
bool  flag_stats = false,
bool  flag_array = false,
bool  flag_locator = false,
const VectorString names = VectorString(),
const VectorInt cols = VectorInt(),
bool  useSel = true 
)
static

◆ createFromKeys()

DbStringFormat * DbStringFormat::createFromKeys ( unsigned char  params,
const VectorString names,
const VectorInt cols,
bool  useSel 
)
static

◆ getCols()

const VectorInt& DbStringFormat::getCols ( ) const
inline

◆ getMode()

int DbStringFormat::getMode ( ) const
inline

◆ getNames()

const VectorString& DbStringFormat::getNames ( ) const
inline

◆ getParams()

unsigned char DbStringFormat::getParams ( ) const
inline

◆ getUseSel()

bool DbStringFormat::getUseSel ( ) const
inline

◆ matchArray()

bool DbStringFormat::matchArray ( ) const
inline

◆ matchExtend()

bool DbStringFormat::matchExtend ( ) const
inline

◆ matchLocator()

bool DbStringFormat::matchLocator ( ) const
inline

◆ matchResume()

bool DbStringFormat::matchResume ( ) const
inline

◆ matchStats()

bool DbStringFormat::matchStats ( ) const
inline

◆ matchVars()

bool DbStringFormat::matchVars ( ) const
inline

◆ operator=()

DbStringFormat & DbStringFormat::operator= ( const DbStringFormat r)

◆ setArray()

void DbStringFormat::setArray ( )
inline

◆ setCols()

void DbStringFormat::setCols ( const VectorInt cols)
inline

Reduce the set of variables for which the print is provided

Parameters
colsVector of Column indices on which Stats or Array is applied (optional)
Remarks
This selection is performed by Column Rank. It invalidates any possible selection already performed.

◆ setExtend()

void DbStringFormat::setExtend ( )
inline

◆ setFlags()

void DbStringFormat::setFlags ( bool  flag_resume = true,
bool  flag_vars = true,
bool  flag_extend = false,
bool  flag_stats = false,
bool  flag_array = false,
bool  flag_locator = false,
const VectorString names = VectorString(),
const VectorInt cols = VectorInt(),
bool  useSel = true 
)

◆ setLocator()

void DbStringFormat::setLocator ( )
inline

◆ setMode()

void DbStringFormat::setMode ( int  mode)
inline
Parameters
modeWay to consider the variable for Stats (1: Real; 2: Categorical)

◆ setNames()

void DbStringFormat::setNames ( const VectorString names)
inline

Reduce the set of variables for which the print is provided

Parameters
namesVector of Column names
Remarks
This selection is performed by Variable Name. It invalidates any possible selection already performed.

◆ setParams()

void DbStringFormat::setParams ( unsigned char  params)
inline

Set the String Format parameters

Parameters
paramsMask defining the printout
Remarks
The Mask is a combination of DISPLAY_PARAMS, i.e.:
- FLAG_RESUME: for a Summary of the contents
- FLAG_VARS: for the Field Names and Locators
- FLAG_EXTEND: for the area covered by the Db
- FLAG_STATS: for Basic Statistics on the variables
- FLAG_ARRAY: for the extensive printout of the variables

◆ setResume()

void DbStringFormat::setResume ( )
inline

◆ setStats()

void DbStringFormat::setStats ( )
inline

◆ setUseSel()

void DbStringFormat::setUseSel ( bool  useSel)
inline

Using the current Selection or Not

Parameters
useSelTake the selection into account when true

◆ setVars()

void DbStringFormat::setVars ( )
inline

◆ toString()

String DbStringFormat::toString ( const AStringFormat strfmt = nullptr) const
overridevirtual

Interface to AStringable.

Reimplemented from AStringable.


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