#include <sbuild-sourcedeps.h>
Collaboration diagram for sbuild::sourcedeps:
Private Types | |
typedef std::map< std::string, string_list > | dependency_map |
Map of packages to dependency list. | |
typedef runtime_error_custom< sourcedeps > | error |
Exception type. | |
Private Member Functions | |
sourcedeps () | |
The constructor. | |
sourcedeps (std::string const &file) | |
The constructor. | |
sourcedeps (std::istream &stream) | |
The constructor. | |
virtual | ~sourcedeps () |
The destructor. | |
string_list | get_groups () const |
Get a list of groups. | |
string_list | get_keys (std::string const &group) const |
Get a list of keys in a group. | |
bool | has_group (std::string const &group) const |
Check if a group exists. | |
bool | has_key (std::string const &group, std::string const &key) const |
Check if a key exists. | |
void | set_group (std::string const &group, std::string const &comment) |
Set a group. | |
std::string | get_comment (std::string const &group) const |
Get a group comment. | |
std::string | get_comment (std::string const &group, std::string const &key) const |
Get a key comment. | |
template<typename T> | |
bool | get_value (std::string const &group, std::string const &key, T &value) const |
Get a key value. | |
template<typename T> | |
bool | get_value (std::string const &group, std::string const &key, priority priority, T &value) const |
Get a key value. | |
bool | get_locale_string (std::string const &group, std::string const &key, std::string &value) const |
Get a localised key string value. | |
bool | get_locale_string (std::string const &group, std::string const &key, priority priority, std::string &value) const |
Get a localised key string value. | |
bool | get_locale_string (std::string const &group, std::string const &key, std::string const &locale, std::string &value) const |
Get a localised key string value for a specific locale. | |
bool | get_locale_string (std::string const &group, std::string const &key, std::string const &locale, priority priority, std::string &value) const |
Get a localised key string value for a specific locale. | |
template<typename T, template< typename T > class C> | |
bool | get_list_value (std::string const &group, std::string const &key, C< T > &value) const |
Get a key value as a list. | |
template<typename T, template< typename T > class C> | |
bool | get_list_value (std::string const &group, std::string const &key, priority priority, C< T > &value) const |
Get a key value as a list. | |
template<typename T> | |
void | set_value (std::string const &group, std::string const &key, T const &value) |
Set a key value. | |
template<typename T> | |
void | set_value (std::string const &group, std::string const &key, T const &value, std::string const &comment) |
Set a key value. | |
template<typename T, template< typename T > class C> | |
void | set_list_value (std::string const &group, std::string const &key, C< T > const &value) |
Set a key value from a list. | |
template<typename T, template< typename T > class C> | |
void | set_list_value (std::string const &group, std::string const &key, C< T > const &value, std::string const &comment) |
Set a key value from a list. | |
void | remove_group (std::string const &group) |
Remove a group. | |
void | remove_key (std::string const &group, std::string const &key) |
Remove a key. | |
sourcedeps & | operator+= (sourcedeps const &rhs) |
Add a sourcedeps to the sourcedeps. | |
const group_type * | find_group (std::string const &group) const |
Find a group by it's name. | |
group_type * | find_group (std::string const &group) |
Find a group by it's name. | |
const item_type * | find_item (std::string const &group, std::string const &key) const |
Find a key by it's group and name. | |
item_type * | find_item (std::string const &group, std::string const &key) |
Find a key by it's group and name. | |
void | check_priority (std::string const &group, std::string const &key, priority priority, bool valid) const |
Check if a key is missing or present when not permitted. | |
Static Private Member Functions | |
static void | print_comment (std::string const &comment, std::ostream &stream) |
Print a comment to a stream. | |
Private Attributes | |
sbuild::sourcedeps::special | PRIORITY_OPTIONAL |
Configuration parameter priority. The parameter is optional. | |
sbuild::sourcedeps::special | PRIORITY_REQUIRED |
Configuration parameter priority. The parameter is optional. The parameter is required. | |
sbuild::sourcedeps::special | PRIORITY_DISALLOWED |
Configuration parameter priority. The parameter is optional. The parameter is required. The parameter is not allowed in this context. | |
sbuild::sourcedeps::special | PRIORITY_DEPRECATED |
Configuration parameter priority. The parameter is optional. The parameter is required. The parameter is not allowed in this context. The parameter is deprecated, but functional. | |
sbuild::sourcedeps::special | PRIORITY_OBSOLETE |
< The parameter is obsolete, and not functional. | |
group_map_type | groups |
The top-level groups. | |
char | separator |
The separator used as a list item delimiter. | |
Friends | |
sourcedeps | operator+ (sourcedeps const &lhs, sourcedeps const &rhs) |
Add a sourcedeps to the sourcedeps. | |
template<class charT, class traits> | |
std::basic_istream< charT, traits > & | operator>> (std::basic_istream< charT, traits > &stream, sourcedeps &kf) |
sourcedeps initialisation from an istream. | |
template<class charT, class traits> | |
std::basic_ostream< charT, traits > & | operator<< (std::basic_ostream< charT, traits > &stream, sourcedeps const &kf) |
sourcedeps output to an ostream. | |
Classes | |
class | special |
|
Map of packages to dependency list.
|
|
Exception type.
|
|
The constructor.
|
|
The constructor.
|
|
The constructor.
|
|
The destructor.
|
|
Check if a key is missing or present when not permitted.
|
|
Find a group by it's name.
|
|
Find a group by it's name.
|
|
Find a key by it's group and name.
|
|
Find a key by it's group and name.
|
|
Get a key comment.
|
|
Get a group comment.
|
|
Get a list of groups.
|
|
Get a list of keys in a group.
|
|
Get a key value as a list. If the value does not exist, is deprecated or obsolete, warn appropriately.
|
|
Get a key value as a list.
Here is the call graph for this function: ![]() |
|
Get a localised key string value for a specific locale. If the value does not exist, is deprecated or obsolete, warn appropriately.
|
|
Get a localised key string value for a specific locale.
|
|
Get a localised key string value. If the value does not exist, is deprecated or obsolete, warn appropriately.
|
|
Get a localised key string value.
|
|
Get a key value. If the value does not exist, is deprecated or obsolete, warn appropriately.
Here is the call graph for this function: ![]() |
|
Get a key value.
Here is the call graph for this function: ![]() |
|
Check if a group exists.
|
|
Check if a key exists.
|
|
Add a sourcedeps to the sourcedeps.
|
|
Print a comment to a stream. The comment will have hash ('#') marks printed at the start of each line.
|
|
Remove a group.
|
|
Remove a key.
|
|
Set a group. The group will be created (and the comment set) only if the group does not already exist.
|
|
Set a key value from a list.
|
|
Set a key value from a list.
|
|
Set a key value.
|
|
Set a key value.
|
|
Add a sourcedeps to the sourcedeps.
|
|
sourcedeps output to an ostream.
|
|
sourcedeps initialisation from an istream.
|
|
The top-level groups.
|
|
Configuration parameter priority. The parameter is optional. The parameter is required. The parameter is not allowed in this context. The parameter is deprecated, but functional.
|
|
Configuration parameter priority. The parameter is optional. The parameter is required. The parameter is not allowed in this context.
|
|
< The parameter is obsolete, and not functional.
|
|
Configuration parameter priority. The parameter is optional.
|
|
Configuration parameter priority. The parameter is optional. The parameter is required.
|
|
The separator used as a list item delimiter.
|