git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@989948
13f79535-47bb-0310-9956-
ffa450edef68
/**
* check whether sub-namespace declaraction is used by generator.
- * e.g. allow
+ * e.g. allow
* namespace py.twisted bar
* to specify namespace to use when -gen py:twisted is specified.
* Will be called with subnamespace, i.e. is_valid_namespace("twisted")
return new generator(program, parsed_options, option_string);
}
- bool is_valid_namespace(const std::string& sub_namespace){
+ virtual bool is_valid_namespace(const std::string& sub_namespace) {
return generator::is_valid_namespace(sub_namespace);
}
};
if(! it->second->is_valid_namespace(sub_namespace)) {
throw base_language +" generator does not accept '" + sub_namespace + "' as sub-namespace!";
}
- }
+ }
namespaces_[language] = name_space;
}