29 #include <curl/curl.h>
36 LibraryDescription (std::string
const & n, std::string
const & a, std::string
const & d, std::string
const & u, std::string
const & l, std::string
const & td, std::string
const & s)
37 : _name (n), _author (a), _description (d), _url (u), _license (l), _toplevel_dir (td), _size (s), _installed (false) {}
39 std::string
const &
name()
const {
return _name; }
40 std::string
const &
description()
const {
return _description; }
41 std::string
const &
author()
const {
return _author; }
42 std::string
const &
url()
const {
return _url; }
43 std::string
const &
license()
const {
return _license; }
45 std::string
const &
size()
const {
return _size; }
65 int add (std::string
const & root_dir);
std::string const & license() const
std::string const & name() const
std::string _toplevel_dir
std::string const & description() const
std::string const & toplevel_dir() const
std::string const & url() const
std::string const & size() const
void set_installed(bool yn)
std::string const & author() const
LibraryDescription(std::string const &n, std::string const &a, std::string const &d, std::string const &u, std::string const &l, std::string const &td, std::string const &s)
void foreach_description(std::function< void(LibraryDescription)> f) const
void foreach_description(std::function< void(LibraryDescription)> f)
std::vector< LibraryDescription > _descriptions
bool installed(LibraryDescription const &desc)
int add(std::string const &root_dir)
std::string install_path_for(LibraryDescription const &)
size_t n_descriptions() const