com.sun.electric.tool.io.output
Class DELIB

java.lang.Object
  extended by com.sun.electric.tool.io.output.Output
      extended by com.sun.electric.tool.io.output.JELIB
          extended by com.sun.electric.tool.io.output.DELIB

public class DELIB
extends JELIB

User: gainsley Date: Mar 8, 2006


Nested Class Summary
 
Nested classes/interfaces inherited from class com.sun.electric.tool.io.output.Output
Output.OutputPreferences, Output.WriteJELIB
 
Field Summary
static char PLATFORM_INDEPENDENT_FILE_SEPARATOR
           
static java.lang.String SEARCH_FOR_CELL_FILES
           
 
Fields inherited from class com.sun.electric.tool.io.output.Output
dataOutputStream, errorLogger, filePath, printWriter, quiet, stringWriter
 
Method Summary
static java.lang.String getCellFile(Cell cell)
          Method used by other tools to find out relative path for cell.
static java.lang.String getCellSubDir(CellId cellId)
          Cell subdirectory name.
 java.util.List<java.lang.String> getDeletedCellFiles()
           
static java.lang.String getHeaderFile()
          Get relative path to header file from .delib directory
 java.util.List<java.lang.String> getWrittenCellFiles()
           
protected  boolean openTextOutputStream(java.lang.String filePath)
          Open the printWriter for writing text files
protected  boolean writeLib(Snapshot snapshot, LibId libId, java.util.Set<CellId> oldCells)
           
 
Methods inherited from class com.sun.electric.tool.io.output.JELIB
describeDescriptor, writeLib
 
Methods inherited from class com.sun.electric.tool.io.output.Output
closeBinaryOutputStream, closeStringsOutputStream, closeTextOutputStream, emitCopyright, exportCellCommand, finishWrite, getAreaToPrint, getNumErrors, getNumWarnings, getOutputPreferences, openBinaryOutputStream, openStringsOutputStream, reportError, reportWarning, saveJelib, setContinuationString, setOutputWidth, writeCell, writeLibrary, writeLibrary, writePanicSnapshot, writeWidthLimited
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SEARCH_FOR_CELL_FILES

public static final java.lang.String SEARCH_FOR_CELL_FILES
See Also:
Constant Field Values

PLATFORM_INDEPENDENT_FILE_SEPARATOR

public static final char PLATFORM_INDEPENDENT_FILE_SEPARATOR
See Also:
Constant Field Values
Method Detail

writeLib

protected boolean writeLib(Snapshot snapshot,
                           LibId libId,
                           java.util.Set<CellId> oldCells)

openTextOutputStream

protected boolean openTextOutputStream(java.lang.String filePath)
Open the printWriter for writing text files

Overrides:
openTextOutputStream in class Output
Parameters:
filePath - the name of the file.
Returns:
true on error.

getDeletedCellFiles

public java.util.List<java.lang.String> getDeletedCellFiles()

getWrittenCellFiles

public java.util.List<java.lang.String> getWrittenCellFiles()

getCellSubDir

public static java.lang.String getCellSubDir(CellId cellId)
Cell subdirectory name. This is the directory inside the .delib directory containing the Cell files for the specified cell.

Parameters:
cellId -
Returns:
the Cell subdirectory name.

getCellFile

public static java.lang.String getCellFile(Cell cell)
Method used by other tools to find out relative path for cell. This is the path, relative to the .delib directory path, of the file for the specified cell. Note it is a relative path, not an absolute path. Ex: LEsettings.sch or LEsettings/LEsettings.sch

Parameters:
cell - the Cell.
Returns:
the file with the Cell in it.

getHeaderFile

public static final java.lang.String getHeaderFile()
Get relative path to header file from .delib directory

Returns:
the name of the header file in the .delib directory.