mirror of https://github.com/opencv/opencv.git
Open Source Computer Vision Library
https://opencv.org/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
1.1 KiB
34 lines
1.1 KiB
13 years ago
|
#ifndef __COMMON_PACKAGE_MANAGER_H__
|
||
|
#define __COMMON_PACKAGE_MANAGER_H__
|
||
|
|
||
|
#include "IPackageManager.h"
|
||
|
#include "PackageInfo.h"
|
||
|
#include <vector>
|
||
|
#include <string>
|
||
|
|
||
|
class CommonPackageManager: public IPackageManager
|
||
|
{
|
||
|
public:
|
||
12 years ago
|
std::vector<int> GetInstalledVersions();
|
||
|
bool CheckVersionInstalled(int version, int platform, int cpu_id);
|
||
|
bool InstallVersion(int version, int platform, int cpu_id);
|
||
|
std::string GetPackagePathByVersion(int version, int platform, int cpu_id);
|
||
13 years ago
|
virtual ~CommonPackageManager();
|
||
|
|
||
|
protected:
|
||
12 years ago
|
static const std::vector<std::pair<int, int> > ArchRatings[];
|
||
12 years ago
|
|
||
13 years ago
|
static std::vector<std::pair<int, int> > InitArmRating();
|
||
|
static std::vector<std::pair<int, int> > InitIntelRating();
|
||
12 years ago
|
static std::vector<std::pair<int, int> > InitMipsRating();
|
||
12 years ago
|
|
||
12 years ago
|
bool IsVersionCompatible(int target_version, int package_version);
|
||
13 years ago
|
int GetHardwareRating(int platform, int cpu_id, const std::vector<std::pair<int, int> >& group);
|
||
12 years ago
|
|
||
13 years ago
|
virtual bool InstallPackage(const PackageInfo& package) = 0;
|
||
12 years ago
|
virtual std::vector<PackageInfo> GetInstalledPackages() = 0;
|
||
13 years ago
|
};
|
||
|
|
||
|
|
||
12 years ago
|
#endif
|