Class: EasySwig::NamespaceGenerator

Inherits:
Object
  • Object
show all
Includes:
GeneratorUtil
Defined in:
lib/generators/namespace_generator.rb

Direct Known Subclasses

CSharpNamespaceGenerator

Instance Method Summary collapse

Methods included from GeneratorUtil

#_process_type, #enum_snippet, #ignore_enum_values_snippet, #nested_workaround, #process_type, #template_snippet

Methods included from Query

#anonymous_enum?, #get_reference_type, #is_operator?, #is_template?, #is_template_param?, #lookup_typename, #method_has_blacklisted_types?, #name_for_friend, #name_for_operator, #name_for_template, #nested_typenames_for, #no_public_constructors?, #no_public_destructors?, #type_is_blacklisted?, #typename_is_blacklisted?

Methods included from Util

#del_prefix_class, #escape_all, #escape_const_ref_ptr, #escape_template, #gen_dir, #home_dir, #is_primitive?, #is_std?, #lib_dir, #logs_dir, #output_dir, #read_file, #rename_files, #swig_dir, #write_file

Constructor Details

#initialize(api_ns) ⇒ NamespaceGenerator

Returns a new instance of NamespaceGenerator.



6
7
8
# File 'lib/generators/namespace_generator.rb', line 6

def initialize(api_ns)
  @api_ns = api_ns
end

Instance Method Details

#generateObject



10
11
12
13
14
# File 'lib/generators/namespace_generator.rb', line 10

def generate
  swig_file = generate_functions
  swig_file << generate_variables
  swig_file << generate_enums
end