FreeHEP API
Version current

org.freehep.aid
Class CPPHeaderGenerator

java.lang.Object
  extended byorg.freehep.aid.AbstractGenerator
      extended byorg.freehep.aid.AbstractCPPGenerator
          extended byorg.freehep.aid.AbstractCPPHeaderGenerator
              extended byorg.freehep.aid.CPPHeaderGenerator
All Implemented Interfaces:
Generator

public class CPPHeaderGenerator
extends AbstractCPPHeaderGenerator

Version:
$Id: CPPHeaderGenerator.java,v 1.27 2005/04/26 18:17:48 duns Exp $
Author:
Mark Donszelmann
Source Code:
CPPHeaderGenerator.java

Field Summary
 
Fields inherited from class org.freehep.aid.AbstractCPPGenerator
converter, includeProperties, language, namesProperties, sysIncludeProperties, typeProperties, valueProperties
 
Fields inherited from class org.freehep.aid.AbstractGenerator
properties
 
Constructor Summary
CPPHeaderGenerator(String propDir)
           
 
Method Summary
 String directory(IClass clazz)
           
 String filename(IClass clazz)
           
protected  void includeStatements(IClass clazz, SortedSet sysIncludes, SortedSet includes, String namespace, SortedSet types)
           
protected  String namedType(INamedType namedType, String nameSpace)
           
protected  void printClassHeader(IndentPrintWriter out, IClass clazz)
           
protected  boolean printDefines(IndentPrintWriter out, IClass clazz)
           
protected  void printField(IndentPrintWriter out, IField field, String nameSpace)
           
protected  void printMethod(IndentPrintWriter out, IMethod method, String nameSpace)
           
protected  void printPublic(IndentPrintWriter out, IClass clazz)
           
 
Methods inherited from class org.freehep.aid.AbstractCPPHeaderGenerator
prefix, print, printConstructor, printPrivate, printProtected
 
Methods inherited from class org.freehep.aid.AbstractCPPGenerator
includeFrom, includeFrom, namespace, printIncludeStatements
 
Methods inherited from class org.freehep.aid.AbstractGenerator
getProperties, warning
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CPPHeaderGenerator

public CPPHeaderGenerator(String propDir)
Method Detail

directory

public String directory(IClass clazz)
Specified by:
directory in interface Generator
Overrides:
directory in class AbstractCPPHeaderGenerator

filename

public String filename(IClass clazz)
Specified by:
filename in interface Generator
Specified by:
filename in class AbstractGenerator

includeStatements

protected void includeStatements(IClass clazz,
                                 SortedSet sysIncludes,
                                 SortedSet includes,
                                 String namespace,
                                 SortedSet types)
Overrides:
includeStatements in class AbstractCPPGenerator

printClassHeader

protected void printClassHeader(IndentPrintWriter out,
                                IClass clazz)
Specified by:
printClassHeader in class AbstractCPPHeaderGenerator

printPublic

protected void printPublic(IndentPrintWriter out,
                           IClass clazz)
Overrides:
printPublic in class AbstractCPPHeaderGenerator

printMethod

protected void printMethod(IndentPrintWriter out,
                           IMethod method,
                           String nameSpace)
Overrides:
printMethod in class AbstractCPPHeaderGenerator

printDefines

protected boolean printDefines(IndentPrintWriter out,
                               IClass clazz)
Specified by:
printDefines in class AbstractCPPHeaderGenerator
Returns:
true if a class needs to be written (no need if it contains only #defines)

printField

protected void printField(IndentPrintWriter out,
                          IField field,
                          String nameSpace)
Specified by:
printField in class AbstractCPPHeaderGenerator

namedType

protected String namedType(INamedType namedType,
                           String nameSpace)
Overrides:
namedType in class AbstractCPPGenerator

FreeHEP API
Version current

Copyright © 2000-2004 FreeHEP, All Rights Reserved.