1 #ifndef sprockit_keyword_registration_H 2 #define sprockit_keyword_registration_H 21 #if !SPKT_DISABLE_REGEX 25 static spkt_unordered_set<std::string>*
removed_;
44 static void validate_keyword(
const std::string& name,
const std::string& val);
67 #if !SPKT_DISABLE_REGEX 77 #define RegisterKeywords(...) \ 78 static const char* _keywords_[] = { __VA_ARGS__ }; \ 79 static ::sprockit::StaticKeywordRegister _keyword_register_(sizeof(_keywords_) / sizeof(const char*), _keywords_) 81 #define RegisterNamespaces(...) \ 82 static const char* _namespaces_[] = { __VA_ARGS__ }; \ 83 static ::sprockit::StaticNamespaceRegister _namespace_register_(sizeof(_namespaces_) / sizeof(const char*), _namespaces_)
static void validate_namespace(const std::string &ns)
static bool is_valid_namespace(const std::string &ns)
static void validate_keyword(const std::string &name, const std::string &val)
static std::list< std::string > * regexps_
static spkt_unordered_set< std::string > * valid_keywords_
static spkt_unordered_set< std::string > * removed_
static spkt_unordered_set< std::string > * valid_namespaces_
static void register_namespace(const std::string &ns)
static void delete_statics()
static void register_keyword(const std::string &name)
static void register_regexp(const std::string ®exp)
static bool do_validation_
static bool is_valid_keyword(const std::string &name)