Class: ATK1DelayTaskPlugin

Inherits:
CelltypePlugin show all
Defined in:
lib/tecsgen/plugin/ATK1DelayTaskPlugin.rb

Overview

celltype プラグインの共通の親クラス

Constant Summary

Constants inherited from Plugin

Plugin::PluginArgProc

Instance Method Summary collapse

Methods inherited from CelltypePlugin

gen_post_code

Methods inherited from Plugin

#cdl_error, #check_plugin_arg, #gen_cdl_file, #gen_ep_func?, #gen_postamble, #gen_preamble, #parse_plugin_arg, #print_msg, #set_locale, #set_silent

Methods inherited from Node

#cdl_error, #cdl_error2, #cdl_error3, #cdl_info, #cdl_info2, #cdl_warning, #cdl_warning2, #get_locale, #locale_str, #set_locale

Constructor Details

#initialize(celltype, option) ⇒ ATK1DelayTaskPlugin

signature

Celltype シグニチャ(インスタンス)



45
46
47
# File 'lib/tecsgen/plugin/ATK1DelayTaskPlugin.rb', line 45

def initialize(celltype, option)
  super
end

Instance Method Details

#gen_factory(file) ⇒ Object

def gen_ep_func_body( file, b_singleton, ct_name, global_ct_name, sig_name, ep_name, func_name, func_global_name, func_type, params )

end


83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
# File 'lib/tecsgen/plugin/ATK1DelayTaskPlugin.rb', line 83

def gen_factory(file)
  # 追記するために AppFile を使う(文字コード変換されない)
  file2 = AppFile.open("#{$gen}/tDelayTaskBody_factory.#{$h_suffix}")
  file2.print "\n/* Generated by ATK1DelayTaskPlugin */\n\n"
  @celltype.get_cell_list.each {|cell|
    if cell.is_generate?
      name_array = @celltype.get_name_array(cell)

      join = cell.get_join_list.get_item(:event)
      if join
        str = join.get_rhs.to_s
        if str =~ /&(.*)/
          str = $1
        end

        file2.print "DeclareEvent( #{str} );\n"
      end

    end
  }

  file2.close
end

#new_cell(cell) ⇒ Object

def gen_cdl_file file

end


58
59
60
61
62
63
64
65
66
# File 'lib/tecsgen/plugin/ATK1DelayTaskPlugin.rb', line 58

def new_cell(cell)
#    join_list = cell.get_join_list
#    a = join_list.get_item( :resource )
#    if a == nil
#     Generator.error( "resource: must be initialized")
#    elsif ! a.get_rhs.instance_of? Array
#      Generator.error( "resource: initializer must be in format of '{val1, val2 ...}'")
#    end
end