net.sf.antcontrib.cpptasks.devstudio
Class DevStudioMIDLCompiler
java.lang.Object
net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
net.sf.antcontrib.cpptasks.compiler.AbstractCompiler
net.sf.antcontrib.cpptasks.compiler.CommandLineCompiler
net.sf.antcontrib.cpptasks.devstudio.DevStudioMIDLCompiler
- All Implemented Interfaces:
- Cloneable, Compiler, Processor
public final class DevStudioMIDLCompiler
- extends CommandLineCompiler
Adapter for the Microsoft (r) MIDL Compiler
- Author:
- Curt Arnold
Method Summary |
protected void |
addImpliedArgs(Vector args,
boolean debug,
boolean multithreaded,
boolean exceptions,
LinkType linkType,
Boolean rtti,
OptimizationEnum optimization)
|
protected void |
addWarningSwitch(Vector args,
int level)
|
Processor |
changeEnvironment(boolean newEnvironment,
org.apache.tools.ant.types.Environment env)
|
protected Parser |
createParser(File source)
The include parser for C will work just fine, but we didn't want to
inherit from CommandLineCCompiler |
protected int |
getArgumentCountPerInputFile()
|
protected void |
getDefineSwitch(StringBuffer buffer,
String define,
String value)
|
protected File[] |
getEnvironmentIncludePath()
|
protected String |
getIncludeDirSwitch(String includeDir)
|
protected String |
getInputFileArgument(File outputDir,
String filename,
int index)
|
static DevStudioMIDLCompiler |
getInstance()
|
Linker |
getLinker(LinkType type)
Gets the linker that is associated with this processors |
int |
getMaximumCommandLength()
|
protected int |
getMaximumInputFilesPerCommand()
|
protected int |
getTotalArgumentLengthForInputFile(File outputDir,
String inputFile)
|
protected void |
getUndefineSwitch(StringBuffer buffer,
String define)
|
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.CommandLineCompiler |
addIncludes, buildDefineArguments, compile, createConfiguration, getCommand, getIdentifier, getIncludeDirSwitch, getLibtool, getLibtoolCompiler, runCommand, setCommand |
Methods inherited from interface net.sf.antcontrib.cpptasks.compiler.Processor |
bid |
getInstance
public static DevStudioMIDLCompiler getInstance()
addImpliedArgs
protected void addImpliedArgs(Vector args,
boolean debug,
boolean multithreaded,
boolean exceptions,
LinkType linkType,
Boolean rtti,
OptimizationEnum optimization)
- Specified by:
addImpliedArgs
in class CommandLineCompiler
addWarningSwitch
protected void addWarningSwitch(Vector args,
int level)
- Specified by:
addWarningSwitch
in class CommandLineCompiler
changeEnvironment
public Processor changeEnvironment(boolean newEnvironment,
org.apache.tools.ant.types.Environment env)
- Specified by:
changeEnvironment
in interface Processor
- Overrides:
changeEnvironment
in class AbstractProcessor
createParser
protected Parser createParser(File source)
- The include parser for C will work just fine, but we didn't want to
inherit from CommandLineCCompiler
- Specified by:
createParser
in class AbstractCompiler
getArgumentCountPerInputFile
protected int getArgumentCountPerInputFile()
- Overrides:
getArgumentCountPerInputFile
in class CommandLineCompiler
getDefineSwitch
protected void getDefineSwitch(StringBuffer buffer,
String define,
String value)
- Specified by:
getDefineSwitch
in class CommandLineCompiler
getEnvironmentIncludePath
protected File[] getEnvironmentIncludePath()
- Specified by:
getEnvironmentIncludePath
in class CommandLineCompiler
getIncludeDirSwitch
protected String getIncludeDirSwitch(String includeDir)
- Specified by:
getIncludeDirSwitch
in class CommandLineCompiler
getInputFileArgument
protected String getInputFileArgument(File outputDir,
String filename,
int index)
- Overrides:
getInputFileArgument
in class CommandLineCompiler
getLinker
public Linker getLinker(LinkType type)
- Description copied from interface:
Processor
- Gets the linker that is associated with this processors
getMaximumCommandLength
public int getMaximumCommandLength()
- Specified by:
getMaximumCommandLength
in class CommandLineCompiler
getMaximumInputFilesPerCommand
protected int getMaximumInputFilesPerCommand()
- Overrides:
getMaximumInputFilesPerCommand
in class CommandLineCompiler
getTotalArgumentLengthForInputFile
protected int getTotalArgumentLengthForInputFile(File outputDir,
String inputFile)
- Overrides:
getTotalArgumentLengthForInputFile
in class CommandLineCompiler
getUndefineSwitch
protected void getUndefineSwitch(StringBuffer buffer,
String define)
- Specified by:
getUndefineSwitch
in class CommandLineCompiler
Copyright © 2001-2011. All Rights Reserved.