Brief description of class still missing. More...
#include <PackageInfo.h>
Public Member Functions | |
| const std::string & | authors () const |
| const std::string & | binDir () const |
| const std::string & | distribution () const |
| const std::string & | dllDir () const |
| const std::string & | includeDir () const |
| const std::string & | libDir () const |
| const std::string & | package () const |
| PackageInfo (const char *package, const char *binDir, const char *libDir, const char *includeDir, const char *shareDir, const char *version, const char *versionTime, const char *versionType, const char *distribtion, const char *authors) | |
| PackageInfo (const PackageInfo &o) | |
| const std::string & | shareDir () const |
| const std::string & | version () const |
| const std::string & | versionTime () const |
| const std::string & | versionType () const |
Static Public Member Functions | |
| static std::string | getInstallDir (std::string organization, std::string package, std::string dir, std::string defaultDir) |
| static std::list< PackageInfo > * | list () |
| static const PackageInfo * | package (std::string package) |
Brief description of class still missing.
Full description of class still missing
| GpCoreTools::PackageInfo::PackageInfo | ( | const char * | package, |
| const char * | binDir, | ||
| const char * | libDir, | ||
| const char * | includeDir, | ||
| const char * | shareDir, | ||
| const char * | version, | ||
| const char * | versionTime, | ||
| const char * | versionType, | ||
| const char * | distribution, | ||
| const char * | authors | ||
| ) |
Description of constructor still missing
References authors(), binDir(), distribution(), includeDir(), libDir(), package(), shareDir(), version(), versionTime(), and versionType().
{
_package=package;
_binDir=binDir;
_libDir=libDir;
_includeDir=includeDir;
_shareDir=shareDir;
_version=version;
_versionTime=versionTime;
_versionType=versionType;
_distribution=distribution;
_authors=authors;
}
| GpCoreTools::PackageInfo::PackageInfo | ( | const PackageInfo & | o | ) |
Copy constructor
{
_package=o._package;
_binDir=o._binDir;
_libDir=o._libDir;
_includeDir=o._includeDir;
_shareDir=o._shareDir;
_version=o._version;
_versionTime=o._versionTime;
_versionType=o._versionType;
_distribution=o._distribution;
_authors=o._authors;
}
| const std::string& GpCoreTools::PackageInfo::authors | ( | ) | const [inline] |
Referenced by PackageInfo().
{return _authors;}
| const std::string& GpCoreTools::PackageInfo::binDir | ( | ) | const [inline] |
Referenced by PackageInfo().
{return _binDir;}
| const std::string& GpCoreTools::PackageInfo::distribution | ( | ) | const [inline] |
Referenced by PackageInfo().
{return _distribution;}
| const std::string& GpCoreTools::PackageInfo::dllDir | ( | ) | const [inline] |
{return libDir();}
| std::string GpCoreTools::PackageInfo::getInstallDir | ( | std::string | organization, |
| std::string | package, | ||
| std::string | dir, | ||
| std::string | defaultDir | ||
| ) | [static] |
{
// TODO: read .config file (for linux only)
//QSettings reg(organization, package);
//reg.beginGroup("installpaths");
//if(reg.contains(dir)) {
// return reg.value(dir).toString();
//} else {
return defaultDir;
//}
}
| const std::string& GpCoreTools::PackageInfo::includeDir | ( | ) | const [inline] |
Referenced by PackageInfo().
{return _includeDir;}
| const std::string& GpCoreTools::PackageInfo::libDir | ( | ) | const [inline] |
Referenced by PackageInfo().
{return _libDir;}
| std::list< PackageInfo > * GpCoreTools::PackageInfo::list | ( | ) | [static] |
Referenced by GpCoreTools::CoreApplication::authors(), and GpCoreTools::CoreApplication::version().
{
if(!_list) _list=new std::list<PackageInfo>;
return _list;
}
| const std::string& GpCoreTools::PackageInfo::package | ( | ) | const [inline] |
Referenced by PackageInfo().
{return _package;}
| const PackageInfo * GpCoreTools::PackageInfo::package | ( | std::string | package | ) | [static] |
{
for(std::list<PackageInfo>::iterator it=PackageInfo::_list->begin();it!=PackageInfo::_list->end(); it++ ) {
if(package==it->package()) {
return &(*it);
}
}
return 0;
}
| const std::string& GpCoreTools::PackageInfo::shareDir | ( | ) | const [inline] |
Referenced by PackageInfo().
{return _shareDir;}
| const std::string& GpCoreTools::PackageInfo::version | ( | ) | const [inline] |
Referenced by PackageInfo().
{return _version;}
| const std::string& GpCoreTools::PackageInfo::versionTime | ( | ) | const [inline] |
Referenced by PackageInfo().
{return _versionTime;}
| const std::string& GpCoreTools::PackageInfo::versionType | ( | ) | const [inline] |
Referenced by PackageInfo().
{return _versionType;}