diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2018-05-23 18:30:01 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2018-05-24 17:18:33 +0300 |
commit | f4e192564a6e048eef14f21ab4d269874b6bfba3 (patch) | |
tree | b7b5ca697f64044dcf10129fef9777ba632379ca /bdep/project.hxx | |
parent | e65b3fd3f273a4377f07872c8bb944858b8d3153 (diff) |
Adapt to inventing package_name type
Diffstat (limited to 'bdep/project.hxx')
-rw-r--r-- | bdep/project.hxx | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/bdep/project.hxx b/bdep/project.hxx index 20d3cf7..612897d 100644 --- a/bdep/project.hxx +++ b/bdep/project.hxx @@ -7,6 +7,8 @@ #include <odb/core.hxx> +#include <libbpkg/package-name.hxx> + #include <bdep/types.hxx> #include <bdep/utility.hxx> @@ -38,6 +40,12 @@ namespace bdep to((?) ? (?)->string () : bdep::optional_string ()) \ from((?) ? bdep::dir_path (*(?)) : bdep::optional_dir_path ()) + // package_name + // + using bpkg::package_name; + + #pragma db value(package_name) type("TEXT") options("COLLATE NOCASE") + // State of a package in a configuration. // // Pretty much everything about the package can change (including location @@ -51,7 +59,7 @@ namespace bdep #pragma db value struct package_state { - string name; + package_name name; }; // Configuration associated with a project. @@ -162,8 +170,8 @@ namespace bdep // struct package_location { - string name; - dir_path path; + package_name name; + dir_path path; }; using package_locations = vector<package_location>; |