forked from adavidzh/SketchUpCMS
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdumpAddEntry.rb
More file actions
executable file
·33 lines (24 loc) · 890 Bytes
/
dumpAddEntry.rb
File metadata and controls
executable file
·33 lines (24 loc) · 890 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/usr/bin/env ruby
# Tai Sakuma <sakuma@fnal.gov>
$LOAD_PATH.unshift(File.expand_path(File.dirname(__FILE__)) + "/lib")
require 'buildDDLCallBacks'
require 'readXMLFiles'
##____________________________________________________________________________||
class GeometryManagerDump
def add_entry sectionName, sectionLabel, partName, args
print "add_entry\n"
p sectionName, sectionLabel, partName, args
print "\n"
end
end
##____________________________________________________________________________||
def main
topDir = File.expand_path(File.dirname(__FILE__)) + '/'
xmlfileList = ['GeometryTOB.xml']
xmlfileList.map! {|f| f = topDir + f }
geometryManager = GeometryManagerDump.new
callBacks = buildDDLCallBacks(geometryManager)
readXMLFiles(xmlfileList, callBacks)
end
##____________________________________________________________________________||
main