packageinfo.cpp
来自「这是VCF框架的代码」· C++ 代码 · 共 244 行
CPP
244 行
//PackageInfo.cpp/*Copyright 2000-2004 The VCF Project.Please see License.txt in the top level directorywhere you installed the VCF.*/#include "vcf/FoundationKit/FoundationKit.h"using namespace VCF;PackageInfo::PackageInfo( const String& packageName, const String& packageUUID, const String& staticLibName, const String& sharedLibName, long linkageFlags, const String& author, const String& company, const String& copyright, const String& additionalInfo): ProgramInfo(packageName,"",author,copyright,company,additionalInfo,"","","",""){ packageUUID_ = packageUUID; additionalInfo_ = additionalInfo; staticLibName_ = staticLibName; sharedLibName_ = sharedLibName; linkageFlags_ = linkageFlags;}Enumerator<String>* PackageInfo::getRequiredStaticLibs(){ return reqStaticLibsContainer_.getEnumerator();}void PackageInfo::addRequiredStaticLib( const String& libName ){ requiredStaticLibs_.push_back( libName );}void PackageInfo::removeRequiredStaticLib( const String& libName ){ std::vector<String>::iterator found = std::find( requiredStaticLibs_.begin(), requiredStaticLibs_.end(), libName ); if ( found != requiredStaticLibs_.end() ) { requiredStaticLibs_.erase( found ); }}void PackageInfo::removeAllRequiredStaticLibs(){ requiredStaticLibs_.clear();}Enumerator<String>* PackageInfo::getRequiredSharedLibs(){ return reqSharedLibsContainer_.getEnumerator();}void PackageInfo::addRequiredSharedLib( const String& libName ){ requiredSharedLibs_.push_back( libName );}void PackageInfo::removeRequiredSharedLib( const String& libName ){ std::vector<String>::iterator found = std::find( requiredSharedLibs_.begin(), requiredSharedLibs_.end(), libName ); if ( found != requiredSharedLibs_.end() ) { requiredSharedLibs_.erase( found ); }}void PackageInfo::removeAllRequiredSharedLibs(){ requiredSharedLibs_.clear();}Enumerator<String>* PackageInfo::getSupportedPlatforms(){ return supportedPlatformsContainer_.getEnumerator();}void PackageInfo::addSupportedPlatform( const String& platform ){ supportedPlatforms_.push_back( platform );}void PackageInfo::removeSupportedPlatform( const String& platform ){ std::vector<String>::iterator found = std::find( supportedPlatforms_.begin(), supportedPlatforms_.end(), platform ); if ( found != supportedPlatforms_.end() ) { supportedPlatforms_.erase( found ); }}void PackageInfo::removeAllSupportedPlatforms(){ supportedPlatforms_.clear();}PackageManager* PackageManager::pkgMgrInstance = NULL;void PackageManager::init(){ PackageManager::pkgMgrInstance = new PackageManager();}void PackageManager::terminate(){ delete PackageManager::pkgMgrInstance;}Enumerator<PackageInfo*>* PackageManager::getPackages(){ return PackageManager::pkgMgrInstance->packagesContainer_.getEnumerator();}void PackageManager::registerPackage( PackageInfo* package ){ std::vector<PackageInfo*>::iterator found = std::find( PackageManager::pkgMgrInstance->packages_.begin(), PackageManager::pkgMgrInstance->packages_.end(), package ); if ( found == PackageManager::pkgMgrInstance->packages_.end() ) { PackageManager::pkgMgrInstance->packages_.push_back( package ); }}void PackageManager::removePackage( PackageInfo* package ){ std::vector<PackageInfo*>::iterator found = std::find( PackageManager::pkgMgrInstance->packages_.begin(), PackageManager::pkgMgrInstance->packages_.end(), package ); if ( found != PackageManager::pkgMgrInstance->packages_.end() ) { delete *found; PackageManager::pkgMgrInstance->packages_.erase( found ); }}PackageManager* PackageManager::getPackageManager(){ return PackageManager::pkgMgrInstance;}PackageManager::PackageManager(){ packagesContainer_.initContainer(packages_);}PackageManager::~PackageManager(){ std::vector<PackageInfo*>::iterator it = packages_.begin(); while ( it != packages_.end() ) { delete *it; it ++; } packages_.clear();}/***CVS Log info*$Log$*Revision 1.4 2006/04/07 02:35:35 ddiego*initial checkin of merge from 0.6.9 dev branch.**Revision 1.3.4.2 2005/09/07 04:19:55 ddiego*filled in initial code for help support.**Revision 1.3.4.1 2005/09/03 14:03:53 ddiego*added a package manager to support package info instances, and*fixed feature request 1278069 - Background color of the TableControl cells.**Revision 1.3 2004/12/01 04:31:41 ddiego*merged over devmain-0-6-6 code. Marcello did a kick ass job*of fixing a nasty bug (1074768VCF application slows down modal dialogs.)*that he found. Many, many thanks for this Marcello.**Revision 1.2.2.3 2004/09/17 11:38:06 ddiego*added program info support in library and process classes.**Revision 1.2.2.2 2004/09/16 03:26:26 ddiego*fixed it so we can now get program information from a resource bundle. This can be embedded in the exe like in windows, or read from an external file a la OS X info.plist xml files.**Revision 1.2.2.1 2004/09/15 21:14:28 ddiego*added support for getting program info from resource bundle.**Revision 1.2 2004/08/07 02:49:14 ddiego*merged in the devmain-0-6-5 branch to stable**Revision 1.1.2.3 2004/06/06 07:05:33 marcelloptr*changed macros, text reformatting, copyright sections**Revision 1.1.2.2 2004/04/29 04:07:12 marcelloptr*reformatting of source files: macros and csvlog and copyright sections**Revision 1.1.2.1 2004/04/28 03:29:40 ddiego*migration towards new directory structure**Revision 1.2 2003/08/09 02:56:45 ddiego*merge over from the devmain-0-6-1 branch*Changes*Features:*-Added additional implementation to better support the MVC architecture in*the VCF**-Added a Document/View architecure that is similar to MFC's or NextSteps's*Doc/View architectures**-Integrated the Anti Grain Graphics library into the GraphicsKit. There is*now basic support for it in terms of drawing vector shapes*(fills and strokes). Image support will come in the next release**-Added several documented graphics tutorials**Bugfixes:**[ 775744 ] wrong buttons on a dialog*[ 585239 ] Painting weirdness in a modal dialog ?*[ 585238 ] Modal dialog which makes a modal Dialog*[ 509004 ] Opening a modal Dialog causes flicker*[ 524878 ] onDropped not called for MLTcontrol**Plus an issue with some focus and getting the right popup window to activate*has also been fixed**Revision 1.1.2.2 2003/07/21 03:08:30 ddiego*added bezier curve editing to Sketchit, fixed a bug in not saving*bitmaps, added PackageInfo to the ApplicationKit**Revision 1.1.2.1 2003/06/16 03:09:39 ddiego*beginning to add support for AGG into the VCF GraphicsKit*added some missing files*added some changes to the new version of xmake**/
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?