home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 1998 October
/
PCWorld_1998-10_cd.bin
/
software
/
prehled
/
komix
/
DATA.Z
/
forteimpor.tcl
< prev
next >
Wrap
Text File
|
1997-09-11
|
2KB
|
76 lines
#---------------------------------------------------------------------------
#
# (c) Cayenne Software Inc. 1997
#
# File: @(#)forteimpor.tcl /main/titanic/4
# Author: <generated>
# Description:
#---------------------------------------------------------------------------
# SccsId = @(#)forteimpor.tcl /main/titanic/4 11 Sep 1997 Copyright 1997 Cayenne Software Inc.
# Start user added include file section
require "fortegen.tcl"
require "forteoopl.tcl"
require "fortexprom.tcl"
require "fortetgt.tcl"
require "forte_msg.tcl"
# End user added include file section
require "importer.tcl"
Class ForteImporter : {Importer} {
constructor
method destructor
method generateOopl
method getOoplFileTypesToGenerateFor
}
constructor ForteImporter {class this} {
set this [Importer::constructor $class $this]
# Start constructor user section
# End constructor user section
return $this
}
method ForteImporter::destructor {this} {
# Start destructor user section
# End destructor user section
$this Importer::destructor
}
method ForteImporter::generateOopl {this classes} {
set fileHandler [FTFileHandler new]
$fileHandler sourceTclFiles
set selectedClasses [List new]
foreach class $classes {
if [$class isExternal] {
continue
}
if {[$class getName] == ""} {
m4_warning $W_CLASS_WITHOUT_NAME
} else {
$selectedClasses append $class
}
}
set generator [FTGenerator new]
set generatedSections [$generator generate $selectedClasses]
$generatedSections foreach class classToSection {
$classToSection foreach type section {
$fileHandler writeSectionToFile $section $class $type
}
}
}
method ForteImporter::getOoplFileTypesToGenerateFor {this} {
set fileHandler [FTFileHandler new]
return [[$fileHandler getFileTypes] contents]
}
# Do not delete this line -- regeneration end marker