Class with methods to print the Data SOurce information. More...
#include <PrintManager.h>
Public Member Functions | |
bool | init (std::string dstype, std::string connstr) |
Init. More... | |
void | printAllInfo (bool pkDetails, bool fkDetails, bool ukDetails, bool idxDetails, bool ccDetails) |
Print All Data Source Informations. More... | |
void | printDataSetInfo (std::vector< std::string > dataSetNameList, bool pkDetails, bool fkDetails, bool ukDetails, bool idxDetails, bool ccDetails) |
Print Data Set Informations. More... | |
void | printDataSetInfo (std::string dataSetName, bool pkDetails, bool fkDetails, bool ukDetails, bool idxDetails, bool ccDetails) |
Print Data Set Informations. More... | |
void | printDataSetNameList () |
Print Data Set Name List. More... | |
void | printDataSourceParameters (std::string dsType) |
Print Data Source Parameters. More... | |
Private Member Functions | |
void | printCapabilities () |
Print Data Source Capabilities. More... | |
void | printCatalog (bool pkDetails, bool fkDetails, bool ukDetails, bool idxDetails, bool ccDetails) |
Print Data Source Catalog. More... | |
void | printCCDetails (struct CCInfo cc) |
Print Check Constraint Details. More... | |
void | printFKDetails (struct FKInfo fk) |
Print Foreign Key Details. More... | |
void | printHeader () |
Print Data Source Header. More... | |
void | printIdxDetails (struct IdxInfo idx) |
Index Details. More... | |
void | printPKDetails (struct PKInfo pk) |
Print Primary Key Details. More... | |
void | printUKDetails (struct UKInfo uk) |
Print Unique Key Details. More... | |
Private Attributes | |
DSInfo | m_dsi |
DSInfo object. More... | |
Class with methods to print the Data SOurce information.
Definition at line 41 of file PrintManager.h.
bool PrintManager::init | ( | std::string | dstype, |
std::string | connstr | ||
) |
Init.
dstype | Data Source Type |
connstr | Data Source Connection String |
Definition at line 4 of file PrintManager.cpp.
References DSInfo::init(), and m_dsi.
Referenced by main().
void PrintManager::printAllInfo | ( | bool | pkDetails, |
bool | fkDetails, | ||
bool | ukDetails, | ||
bool | idxDetails, | ||
bool | ccDetails | ||
) |
Print All Data Source Informations.
pkDetails | If want Primary Key Details |
fkDetails | If want Foreign Key Details |
ukDetails | If want Unique Key Details |
idxDetails | If want Index Key Details |
ccDetails | If want Check Constraint Details |
Definition at line 9 of file PrintManager.cpp.
References printCapabilities(), printCatalog(), and printHeader().
Referenced by main().
|
private |
Print Data Source Capabilities.
Definition at line 72 of file PrintManager.cpp.
References DSInfo::getCapabilities(), and m_dsi.
Referenced by printAllInfo().
|
private |
Print Data Source Catalog.
pkDetails | If want Primary Key Details |
fkDetails | If want Foreign Key Details |
ukDetails | If want Unique Key Details |
idxDetails | If want Index Key Details |
ccDetails | If want Check Constraint Details |
Definition at line 54 of file PrintManager.cpp.
References DSInfo::getDataSetNameList(), m_dsi, and printDataSetInfo().
Referenced by printAllInfo().
|
private |
Print Check Constraint Details.
cc | CCInfo struct |
Definition at line 152 of file PrintManager.cpp.
References CCInfo::expression, and CCInfo::name.
Referenced by printDataSetInfo().
void PrintManager::printDataSetInfo | ( | std::vector< std::string > | dataSetNameList, |
bool | pkDetails, | ||
bool | fkDetails, | ||
bool | ukDetails, | ||
bool | idxDetails, | ||
bool | ccDetails | ||
) |
Print Data Set Informations.
dataSetNameList | String vector with the passed Data Set Names |
pkDetails | If want Primary Key Details |
fkDetails | If want Foreign Key Details |
ukDetails | If want Unique Key Details |
idxDetails | If want Index Key Details |
ccDetails | If want Check Constraint Details |
Definition at line 190 of file PrintManager.cpp.
Referenced by main(), and printCatalog().
void PrintManager::printDataSetInfo | ( | std::string | dataSetName, |
bool | pkDetails, | ||
bool | fkDetails, | ||
bool | ukDetails, | ||
bool | idxDetails, | ||
bool | ccDetails | ||
) |
Print Data Set Informations.
dataSetName | String with the passed Data Set Name |
pkDetails | If want Primary Key Details |
fkDetails | If want Foreign Key Details |
ukDetails | If want Unique Key Details |
idxDetails | If want Index Key Details |
ccDetails | If want Check Constraint Details |
Definition at line 198 of file PrintManager.cpp.
References DSInfo::getDataSetInfo(), DataSetStruct::hasPk, m_dsi, DataSetStruct::name, DataSetStruct::pkInfo, printCCDetails(), printFKDetails(), printIdxDetails(), printPKDetails(), printUKDetails(), DataSetStruct::vecCcInfo, DataSetStruct::vecFkInfo, DataSetStruct::vecIdxInfo, and DataSetStruct::vecUkInfo.
void PrintManager::printDataSetNameList | ( | ) |
Print Data Set Name List.
Definition at line 16 of file PrintManager.cpp.
References DSInfo::getDataSetNameList(), m_dsi, and printHeader().
Referenced by main().
void PrintManager::printDataSourceParameters | ( | std::string | dsType | ) |
Print Data Source Parameters.
dstype | Data Source Type |
Definition at line 162 of file PrintManager.cpp.
References DSInfo::getDataSourceParameters(), and m_dsi.
Referenced by main().
|
private |
Print Foreign Key Details.
fk | FKInfo struct |
Definition at line 110 of file PrintManager.cpp.
References FKInfo::name, and FKInfo::porperties.
Referenced by printDataSetInfo().
|
private |
Print Data Source Header.
Definition at line 34 of file PrintManager.cpp.
References DSInfo::getDataSourceHeader(), m_dsi, DataSourceHeader::name, and DataSourceHeader::type.
Referenced by printAllInfo(), and printDataSetNameList().
|
private |
Index Details.
idx | IdxInfo struct |
Definition at line 138 of file PrintManager.cpp.
References IdxInfo::name, IdxInfo::porperties, and IdxInfo::type.
Referenced by printDataSetInfo().
|
private |
Print Primary Key Details.
pk | PKInfo struct |
Definition at line 95 of file PrintManager.cpp.
References PKInfo::name, and PKInfo::porperties.
Referenced by printDataSetInfo().
|
private |
Print Unique Key Details.
uk | UKInfo struct |
Definition at line 124 of file PrintManager.cpp.
References UKInfo::name, and UKInfo::porperties.
Referenced by printDataSetInfo().
|
private |
DSInfo object.
Definition at line 190 of file PrintManager.h.
Referenced by init(), printCapabilities(), printCatalog(), printDataSetInfo(), printDataSetNameList(), printDataSourceParameters(), and printHeader().