def _generate_routes_h(self, namespace):
self.emit(comment_prefix)<EOL>self.emit_wrapped_text(<EOL>'<STR_LIT>'.format(fmt_class(namespace.name)),<EOL>prefix=comment_prefix)<EOL>self.emit(comment_prefix)<EOL>self.emit()<EOL>self.emit('<STR_LIT>')<EOL>self.emit()<EOL>with self.block_h(<EOL>fmt_routes_class(namespace.name, self.args.auth_type)):<EOL><INDENT>description_str = (<EOL>'<STR_LIT>'<EOL>'<STR_LIT>')<EOL>self.emit_wrapped_text(description_str, prefix=comment_prefix)<EOL>self.emit(<EOL>fmt_property_str(<EOL>prop='<STR_LIT>',<EOL>typ='<STR_LIT>'.format(<EOL>self.args.transport_client_name)))<EOL>self.emit()<EOL>routes_obj_args = fmt_func_args_declaration(<EOL>[('<STR_LIT>',<EOL>'<STR_LIT>'.format(self.args.transport_client_name))])<EOL>init_signature = fmt_signature(<EOL>func='<STR_LIT>',<EOL>args=routes_obj_args,<EOL>return_type='<STR_LIT>')<EOL>description_str = (<EOL>'<STR_LIT>'<EOL>'<STR_LIT>')<EOL>self.emit_wrapped_text(<EOL>description_str.format(<EOL>fmt_routes_class(namespace.name, self.args.auth_type)),<EOL>prefix=comment_prefix)<EOL>self.emit('<STR_LIT>'.format(init_signature))<EOL>self.emit()<EOL>style_to_request = json.loads(self.args.z__style_to_request)<EOL>for route in namespace.routes:<EOL><INDENT>if (route.attrs.get('<STR_LIT>') != self.args.auth_type<EOL>and route.attrs.get('<STR_LIT>') != '<STR_LIT>'):<EOL><INDENT>continue<EOL><DEDENT>route_type = route.attrs.get('<STR_LIT>')<EOL>client_args = json.loads(self.args.client_args)<EOL>if route_type in client_args.keys():<EOL><INDENT>for args_data in client_args[route_type]:<EOL><INDENT>task_type_key, type_data_dict = tuple(args_data)<EOL>task_type_name = style_to_request[task_type_key]<EOL>func_suffix = type_data_dict[<NUM_LIT:0>]<EOL>extra_args = [<EOL>tuple(type_data[:-<NUM_LIT:1>])<EOL>for type_data in type_data_dict[<NUM_LIT:1>]<EOL>]<EOL>extra_docs = [(type_data[<NUM_LIT:0>], type_data[-<NUM_LIT:1>])<EOL>for type_data in type_data_dict[<NUM_LIT:1>]]<EOL>if (is_struct_type(route.arg_data_type) and<EOL>self._struct_has_defaults(route.arg_data_type)):<EOL><INDENT>route_args, doc_list = self._get_default_route_args(<EOL>namespace, route, tag=True)<EOL>self._generate_route_signature(<EOL>route, namespace, route_args, extra_args,<EOL>doc_list + extra_docs, task_type_name,<EOL>func_suffix)<EOL><DEDENT>route_args, doc_list = self._get_route_args(<EOL>namespace, route, tag=True)<EOL>self._generate_route_signature(<EOL>route, namespace, route_args, extra_args,<EOL>doc_list + extra_docs, task_type_name, func_suffix)<EOL><DEDENT><DEDENT>else:<EOL><INDENT>task_type_name = style_to_request[route_type]<EOL>if (is_struct_type(route.arg_data_type) and<EOL>self._struct_has_defaults(route.arg_data_type)):<EOL><INDENT>route_args, doc_list = self._get_default_route_args(<EOL>namespace, route, tag=True)<EOL>self._generate_route_signature(<EOL>route, namespace, route_args, [], doc_list,<EOL>task_type_name, '<STR_LIT>')<EOL><DEDENT>route_args, doc_list = self._get_route_args(<EOL>namespace, route, tag=True)<EOL>self._generate_route_signature(route, namespace,<EOL>route_args, [], doc_list,<EOL>task_type_name, '<STR_LIT>')<EOL><DEDENT><DEDENT><DEDENT>self.emit()<EOL>self.emit('<STR_LIT>')<EOL>self.emit()<EOL>
Generates header file for namespace object that has as methods
        all routes within the namespace.