#include <config.h>
#include "sbuild-keyfile.h"
#include <fstream>
#include <boost/format.hpp>
Include dependency graph for sbuild-keyfile.cc:
Typedefs | |
typedef std::pair< keyfile::error_code, const char * > | emap |
Functions | |
keyfile | operator+ (keyfile const &lhs, keyfile const &rhs) |
Variables | |
emap | init_errors [] |
This is a list of the supported error codes. |
typedef std::pair<keyfile::error_code,const char *> emap [static] |
lhs | the keyfile to add to. | |
rhs | the values to add. |
emap init_errors[] [static] |
Initial value:
{ emap(keyfile::BAD_FILE, N_("Can't open file '%4%'")), emap(keyfile::DISALLOWED_KEY, N_("line %1% [%2%]: Disallowed key '%4%' used")), emap(keyfile::DISALLOWED_KEY_NL, N_("[%2%]: Disallowed key '%4%' used")), emap(keyfile::DUPLICATE_GROUP, N_("line %1%: Duplicate group '%4%'")), emap(keyfile::DUPLICATE_KEY, N_("line %1% [%2%]: Duplicate key '%4%'")), emap(keyfile::INVALID_GROUP, N_("line %1%: Invalid group: \"%4%\"")), emap(keyfile::INVALID_LINE, N_("line %1%: Invalid line: \"%4%\"")), emap(keyfile::MISSING_KEY, N_("[%1%]: Required key '%4%' is missing")), emap(keyfile::NO_GROUP, N_("line %1%: No group specified: \"%4%\"")), emap(keyfile::NO_KEY, N_("line %1%: No key specified: \"%4%\"")), emap(keyfile::PASSTHROUGH_GK, N_("[%1%] %2%: %4%")), emap(keyfile::PASSTHROUGH_LGK, N_("line %1% [%2%] %3%: %4%")) }
It's used to construct the real error codes map.