Cupt
sourcepackage.hpp
Go to the documentation of this file.
00001 /**************************************************************************
00002 *   Copyright (C) 2010 by Eugene V. Lyubimkin                             *
00003 *                                                                         *
00004 *   This program is free software; you can redistribute it and/or modify  *
00005 *   it under the terms of the GNU General Public License                  *
00006 *   (version 3 or above) as published by the Free Software Foundation.    *
00007 *                                                                         *
00008 *   This program is distributed in the hope that it will be useful,       *
00009 *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
00010 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
00011 *   GNU General Public License for more details.                          *
00012 *                                                                         *
00013 *   You should have received a copy of the GNU GPL                        *
00014 *   along with this program; if not, write to the                         *
00015 *   Free Software Foundation, Inc.,                                       *
00016 *   51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA               *
00017 **************************************************************************/
00018 #ifndef CUPT_CACHE_SOURCEPACKAGE_SEEN
00019 #define CUPT_CACHE_SOURCEPACKAGE_SEEN
00020 
00022 
00023 #include <cupt/fwd.hpp>
00024 #include <cupt/cache/package.hpp>
00025 
00026 namespace cupt {
00027 namespace cache {
00028 
00030 class CUPT_API SourcePackage: public Package
00031 {
00032  protected:
00034     CUPT_LOCAL virtual shared_ptr< Version > _parse_version(const Version::InitializationParameters& initParams) const;
00035     CUPT_LOCAL virtual bool _is_architecture_appropriate(const shared_ptr< const Version >&) const;
00037  public:
00039 
00042     SourcePackage(const shared_ptr< const string >& binaryArchitecture);
00043     vector< shared_ptr< const SourceVersion > > getVersions() const;
00044 };
00045 
00046 }
00047 }
00048 
00049 #endif
00050