Go to the documentation of this file.
23 using path = std::filesystem::path;
36 Info(
const std::string& packageName,
37 const path& absPackageDataDir,
38 const path& relativePath,
39 const std::string&
id);
41 virtual ~Info() =
default;
47 std::string
id()
const;
50 PackagePath file(
const std::string& extension,
const std::string& suffix =
"")
const;
56 std::vector<PackagePath>
faceImages(
const std::vector<std::string>& extensions = {
".png",
".jpg"})
const;
72 path _relativeProfileDirectory()
const;
77 std::string _packageName;
78 path _absPackageDataDir;
83 bool _logError =
true;
87 std::ostream&
operator<<(std::ostream& os,
const Info& rhs);
92 return lhs.
id() == rhs.
id();
96 return lhs.
id() != rhs.
id();
100 return lhs.
id() < rhs.
id();
104 return lhs.
id() > rhs.
id();
108 return lhs.
id() <= rhs.
id();
112 return lhs.
id() >= rhs.
id();
bool operator==(const Info &lhs, const Info &rhs)
std::ostream & operator<<(std::ostream &os, const Info &rhs)
PackagePath file(const std::string &extension, const std::string &suffix="") const
bool operator<(const Info &lhs, const Info &rhs)
std::vector< PackagePath > faceImages(const std::vector< std::string > &extensions={".png", ".jpg"}) const
PackagePath sub_directory(const std::string &suffix) const
armarx::human::arondto::Profile Profile
Info(const std::string &packageName, const path &absPackageDataDir, const path &relativePath, const std::string &id)
Info.
bool operator>(const Info &lhs, const Info &rhs)
std::optional< Profile > loadProfile() const
bool operator!=(const Info &lhs, const Info &rhs)
void setLogError(bool enabled)
bool operator>=(const Info &lhs, const Info &rhs)
armarx::human::arondto::Profile Profile
virtual bool checkPaths() const
Checks the existence of expected files.
std::string package() const
PackagePath faceImageDir() const
bool operator<=(const Info &lhs, const Info &rhs)
std::filesystem::path path
PackagePath profileJson() const
Accessor for human profile files.