51 #ifndef _MIRA_LIBRARYREGISTRY_H_ 52 #define _MIRA_LIBRARYREGISTRY_H_ 64 template<
typename Reflector>
67 r.member(
"Major",
mMajor,
"" );
68 r.member(
"Minor",
mMinor,
"" );
69 r.member(
"Patch",
mPatch,
"" );
95 template<
typename Reflector>
119 typedef std::map<std::string, LibraryInfo >
Register;
129 static void registerManifest(
const std::string& name,
139 static void registerLibrary(
const std::string& name,
147 boost::mutex::scoped_lock lock(instance().mMutex);
148 return instance().mLibraries;
Definition: LibraryRegistry.h:58
int mMajor
Definition: LibraryRegistry.h:81
int mMinor
Definition: LibraryRegistry.h:82
A registry for shared libraries.
Definition: LibraryRegistry.h:116
specialize cv::DataType for our ImgPixel and inherit from cv::DataType<Vec>
Definition: IOService.h:67
Provided for convenience.
Definition: Singleton.h:564
std::ostream & operator<<(std::ostream &s, const LibraryVersion &version)
void reflect(Reflector &r)
Definition: LibraryRegistry.h:65
std::map< std::string, LibraryInfo > Register
Definition: LibraryRegistry.h:119
int mPatch
Definition: LibraryRegistry.h:83
A singleton class that can be freely configured using policies that control the creation, instantiation, lifetime and thread-safety.
LibraryVersion()
Definition: LibraryRegistry.h:60
bool operator==(const LibraryVersion &other) const
Definition: LibraryRegistry.h:72
bool mIsLoaded
Definition: LibraryRegistry.h:105
bool mHasManifest
Definition: LibraryRegistry.h:104
LibraryVersion(int iMajor, int iMinor, int iPatch)
Definition: LibraryRegistry.h:61
LibraryVersion mVersion
Definition: LibraryRegistry.h:103
LibraryInfo()
Definition: LibraryRegistry.h:93
void reflect(Reflector &r)
Definition: LibraryRegistry.h:96
Definition: LibraryRegistry.h:90
static Register getRegister()
Get access to library register.
Definition: LibraryRegistry.h:145
bool operator!=(const LibraryVersion &other) const
Definition: LibraryRegistry.h:79