org.freehep.aid
Class CPPHeaderGenerator

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

public class CPPHeaderGenerator
extends AbstractCPPHeaderGenerator

Version:
$Id: CPPHeaderGenerator.java 13274 2007-08-21 20:29:55Z duns $
Author:
Mark Donszelmann

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(org.freehep.rtti.IClass clazz)
           
 String filename(org.freehep.rtti.IClass clazz)
           
protected  void includeStatements(org.freehep.rtti.IClass clazz, SortedSet sysIncludes, SortedSet includes, String namespace, SortedSet types)
           
protected  String namedType(org.freehep.rtti.INamedType namedType, String nameSpace)
           
protected  void printClassHeader(org.freehep.util.io.IndentPrintWriter out, org.freehep.rtti.IClass clazz)
           
protected  boolean printDefines(org.freehep.util.io.IndentPrintWriter out, org.freehep.rtti.IClass clazz)
           
protected  void printField(org.freehep.util.io.IndentPrintWriter out, org.freehep.rtti.IField field, String nameSpace)
           
protected  void printMethod(org.freehep.util.io.IndentPrintWriter out, org.freehep.rtti.IMethod method, String nameSpace)
           
protected  void printPublic(org.freehep.util.io.IndentPrintWriter out, org.freehep.rtti.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(org.freehep.rtti.IClass clazz)
Specified by:
directory in interface org.freehep.rtti.Generator
Overrides:
directory in class AbstractCPPHeaderGenerator

filename

public String filename(org.freehep.rtti.IClass clazz)
Specified by:
filename in interface org.freehep.rtti.Generator
Specified by:
filename in class AbstractGenerator

includeStatements

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

printClassHeader

protected void printClassHeader(org.freehep.util.io.IndentPrintWriter out,
                                org.freehep.rtti.IClass clazz)
Specified by:
printClassHeader in class AbstractCPPHeaderGenerator

printPublic

protected void printPublic(org.freehep.util.io.IndentPrintWriter out,
                           org.freehep.rtti.IClass clazz)
Overrides:
printPublic in class AbstractCPPHeaderGenerator

printMethod

protected void printMethod(org.freehep.util.io.IndentPrintWriter out,
                           org.freehep.rtti.IMethod method,
                           String nameSpace)
Overrides:
printMethod in class AbstractCPPHeaderGenerator

printDefines

protected boolean printDefines(org.freehep.util.io.IndentPrintWriter out,
                               org.freehep.rtti.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(org.freehep.util.io.IndentPrintWriter out,
                          org.freehep.rtti.IField field,
                          String nameSpace)
Specified by:
printField in class AbstractCPPHeaderGenerator

namedType

protected String namedType(org.freehep.rtti.INamedType namedType,
                           String nameSpace)
Overrides:
namedType in class AbstractCPPGenerator


Copyright 2000-2007 FreeHEP. All Rights Reserved.