Go to the documentation of this file.
59 friend std::ostream&
operator<<(std::ostream& stream,
104 friend std::ostream&
operator<<(std::ostream& stream,
134 select(
const std::set< PidVersion >& all_possible_versions)
const;
184 explicit PidPath(
const std::string& str);
219 const std::string& version,
const std::string& path,
220 bool write_new_file);
223 const std::string& version,
224 const std::string& component,
227 const std::string& component,
bool is_executable);
RuntimeComponentType
Definition: pid_path.h:311
bool is_absolute_
Definition: pid_path.h:308
bool is_Target_Module_Component() const
tell whether the target is a module component.
const PidVersion & max() const
get the max version required, if any.
std::string path_
Definition: pid_path.h:306
bool from_String(const std::string &value)
fill the PidPath object with info comming from a string.
PidVersion select(const std::set< PidVersion > &all_possible_versions) const
select the best version as regard of constraints considering all versions.
friend std::ostream & operator<<(std::ostream &stream, const PidVersionConstraint &ver)
PidVersionConstraint & operator=(const PidVersionConstraint &)
bool operator==(const PidPath &compared) const
unsigned int patch_
Definition: pid_path.h:45
root namespace for pid packages.
Definition: bitmask.h:51
bool write_new_file_
Definition: pid_path.h:307
PidPath & operator=(const PidPath &copied)
@ NEWER_EQUAL_THAN_VERSION
Definition: pid_path.h:89
PidVersionConstraint version_
Definition: pid_path.h:305
defines a runtime path to a resource.
Definition: pid_path.h:166
const PidVersion & exact() const
get the exact version required, if any.
friend std::ostream & operator<<(std::ostream &stream, const PidVersion &ver)
void set_Static_Path(const std::string &path, bool write_new_file)
VersionConstraintType
Definition: pid_path.h:83
unsigned int major_
Definition: pid_path.h:45
@ EXACT_VERSION
Definition: pid_path.h:85
bool is_Target_Component() const
tell whether the target is a runtime component.
bool undefined() const
tell whether a constraint is specified or not
void set_Dynamic_Component(const std::string &package, const std::string &version, const std::string &component, bool is_executable)
unsigned int minor_
Definition: pid_path.h:45
PidVersion max_version_
Definition: pid_path.h:94
bool operator!=(const PidVersion &other) const
bool operator<=(const PidVersion &other) const
VersionConstraintType constraint_
Definition: pid_path.h:92
bool operator!=(const PidVersionConstraint &) const
void set_Static_Component(const std::string &package, const std::string &component, bool is_executable)
class for representing version (in PID system) at runtime..
Definition: pid_path.h:43
std::string to_String() const
output the version constraint object as a string
bool operator<(const PidVersion &other) const
bool operator>=(const PidVersion &other) const
const PidVersionConstraint & get_Version() const
raw access to the version constraint object, if any.
bool is_Package_Relative() const
tell whether the target path is relative to a specific package.
@ OLDER_EQUAL_THAN_VERSION
Definition: pid_path.h:88
bool is_Target_Written() const
tell whether the target path may be written by the current executable.
PidVersion min_or_exact_version_
Definition: pid_path.h:93
std::string package_
Definition: pid_path.h:304
std::string resolve()
resolve the current object as a canonical path string.
const PidVersion & min() const
get the min version required, if any.
bool is_Absolute() const
tell whether the target path is absolute or relative.
@ IN_RANGE_VERSION
Definition: pid_path.h:86
bool operator>(const PidVersion &other) const
std::string to_String() const
output the pid path object as a string.
PidVersion & operator=(const PidVersion &)
bool from_String(const std::string &value)
fill the version constraint object with info comming from a string.
bool from_String(const std::string &value)
fill the version object with info comming from a string.
@ IS_NOT_COMPONENT
Definition: pid_path.h:311
void write_Target()
sets the path so that it may write target file.
bool operator==(const PidVersionConstraint &) const
const std::string & get_Package() const
raw access to the target package.
std::string to_String() const
output the version object as a string
bool operator==(const PidVersion &other) const
void set_Dynamic_Path(const std::string &package, const std::string &version, const std::string &path, bool write_new_file)
@ IS_EXE
Definition: pid_path.h:311
@ IS_MODULE
Definition: pid_path.h:311
class for representing constraints on target version (in PID system) at runtime.
Definition: pid_path.h:81
@ ANY_VERSION
Definition: pid_path.h:87
const std::string & get_Path_Expression() const
raw access to the path expression.
bool is_Target_Executable_Component() const
tell whether the target is an executable component.
@ NO_CONSTRAINT
Definition: pid_path.h:84
unsigned char is_component_
Definition: pid_path.h:309