Adapter for the Trolltech Qt MOC Compiler.
addImpliedArgs
protected void addImpliedArgs(Vector args,
boolean debug,
boolean multithreaded,
boolean exceptions,
LinkType linkType,
Boolean rtti,
OptimizationEnum optimization)
Add arguments for debug, etc.
- addImpliedArgs in interface CommandLineCompiler
args
- Vector command argument listdebug
- boolean build for debug if truemultithreaded
- boolean build for multithreading if trueexceptions
- boolean enable exceptions if truelinkType
- LinkType output and runtime typertti
- Boolean enable run-time type identification if trueoptimization
- OptimizationEnum optimization
addWarningSwitch
protected void addWarningSwitch(Vector args,
int level)
Add arguments for specified warning level.
- addWarningSwitch in interface CommandLineCompiler
args
- Vector command line argumentslevel
- int warning level value
bid
public int bid(String inputFile)
Returns the bid of the processor for the file.
- bid in interface Processor
- bid in interface AbstractProcessor
inputFile
- filename of input file
- bid for the file, 0 indicates no interest, 1 indicates that the
processor recognizes the file but doesn't process it (header
files, for example), 100 indicates strong interest
getArgumentCountPerInputFile
protected int getArgumentCountPerInputFile()
Gets number of command line arguments per input file.
- getArgumentCountPerInputFile in interface CommandLineCompiler
- int number of command line arguments per input file.
getDefineSwitch
protected void getDefineSwitch(StringBuffer buffer,
String define,
String value)
Gets switch to define preprocessor macro.
- getDefineSwitch in interface CommandLineCompiler
buffer
- StringBuffer command line argumentdefine
- String macro namevalue
- String macro value, may be null.
getIncludeDirSwitch
protected String getIncludeDirSwitch(String includeDir)
Gets include directory switch.
- getIncludeDirSwitch in interface CommandLineCompiler
includeDir
- String include directory
- String command switch to add specified directory to search path
getInputFileArgument
protected String getInputFileArgument(File outputDir,
String filename,
int index)
Gets input file arguments.
- getInputFileArgument in interface CommandLineCompiler
outputDir
- File output directoryfilename
- String input file name.index
- int argument index,
0 to getNumberOfArgumentsPerInputFile() -1
- String input file argument
getInstance
public static MetaObjectCompiler getInstance()
Gets singleton instance of compiler.
- MetaObjectCompiler singleton instance
getMaximumInputFilesPerCommand
protected int getMaximumInputFilesPerCommand()
Gets maximum number of input files processed per command.
- getMaximumInputFilesPerCommand in interface CommandLineCompiler
- int maximum number of input files processed per command.
getTotalArgumentLengthForInputFile
protected int getTotalArgumentLengthForInputFile(File outputDir,
String inputFile)
Get total command line length due to the input file.
- getTotalArgumentLengthForInputFile in interface CommandLineCompiler
outputDir
- File output directoryinputFile
- String input file
- int characters added to command line for the input file.
getUndefineSwitch
protected void getUndefineSwitch(StringBuffer buffer,
String define)
Gets switch to undefine preprocessor macro.
- getUndefineSwitch in interface CommandLineCompiler
buffer
- StringBuffer command line argumentdefine
- String macro name