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

public final class DevStudioMIDLCompiler
extends CommandLineCompiler

Adapter for the Microsoft (r) MIDL Compiler

Author:
Curt Arnold

Method Summary
protected  void addImpliedArgs(java.util.Vector args, boolean debug, boolean multithreaded, boolean exceptions, LinkType linkType)
           
protected  void addWarningSwitch(java.util.Vector args, int level)
           
protected  Parser createParser()
          The include parser for C will work just fine, but we didn't want to inherit from CommandLineCCompiler
protected  int getArgumentCountPerInputFile()
           
protected  void getDefineSwitch(java.lang.StringBuffer buffer, java.lang.String define, java.lang.String value)
           
protected  java.io.File[] getEnvironmentIncludePath()
           
protected  java.lang.String getIncludeDirSwitch(java.lang.String includeDir)
           
protected  java.lang.String getInputFileArgument(java.io.File outputDir, java.lang.String filename, int index)
           
static DevStudioMIDLCompiler getInstance()
           
 Linker getLinker(LinkType type)
          Gets the linker that is associated with this processors
protected  int getMaximumInputFilesPerCommand()
           
protected  int getTotalArgumentLengthForInputFile(java.io.File outputDir, java.lang.String inputFile)
           
protected  void getUndefineSwitch(java.lang.StringBuffer buffer, java.lang.String define)
           
 
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.CommandLineCompiler
addIncludes, buildDefineArguments, compile, createConfiguration, getCommand, getIdentifier, getLibtool, getLibtoolCompiler, runCommand
 
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractCompiler
canParse, createConfiguration, getBaseOutputName, getOutputFileName, parseIncludes, resolveInclude
 
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
bid, getIdentifier, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getInstance

public static DevStudioMIDLCompiler getInstance()

createParser

protected Parser createParser()
The include parser for C will work just fine, but we didn't want to inherit from CommandLineCCompiler
Overrides:
createParser in class AbstractCompiler

getMaximumInputFilesPerCommand

protected int getMaximumInputFilesPerCommand()
Overrides:
getMaximumInputFilesPerCommand in class CommandLineCompiler

getArgumentCountPerInputFile

protected int getArgumentCountPerInputFile()
Overrides:
getArgumentCountPerInputFile in class CommandLineCompiler

getTotalArgumentLengthForInputFile

protected int getTotalArgumentLengthForInputFile(java.io.File outputDir,
                                                 java.lang.String inputFile)
Overrides:
getTotalArgumentLengthForInputFile in class CommandLineCompiler

getInputFileArgument

protected java.lang.String getInputFileArgument(java.io.File outputDir,
                                                java.lang.String filename,
                                                int index)
Overrides:
getInputFileArgument in class CommandLineCompiler

getEnvironmentIncludePath

protected java.io.File[] getEnvironmentIncludePath()
Overrides:
getEnvironmentIncludePath in class CommandLineCompiler

getIncludeDirSwitch

protected java.lang.String getIncludeDirSwitch(java.lang.String includeDir)
Overrides:
getIncludeDirSwitch in class CommandLineCompiler

getDefineSwitch

protected void getDefineSwitch(java.lang.StringBuffer buffer,
                               java.lang.String define,
                               java.lang.String value)
Overrides:
getDefineSwitch in class CommandLineCompiler

getUndefineSwitch

protected void getUndefineSwitch(java.lang.StringBuffer buffer,
                                 java.lang.String define)
Overrides:
getUndefineSwitch in class CommandLineCompiler

addWarningSwitch

protected void addWarningSwitch(java.util.Vector args,
                                int level)
Overrides:
addWarningSwitch in class CommandLineCompiler

addImpliedArgs

protected void addImpliedArgs(java.util.Vector args,
                              boolean debug,
                              boolean multithreaded,
                              boolean exceptions,
                              LinkType linkType)
Overrides:
addImpliedArgs in class CommandLineCompiler

getLinker

public Linker getLinker(LinkType type)
Description copied from interface: Processor
Gets the linker that is associated with this processors


Copyright © 2001-2002 Ant-Contrib project. All Rights Reserved.