FreeHEP API
Version current

org.freehep.aid
Class AbstractCPPGenerator

java.lang.Object
  extended byorg.freehep.aid.AbstractGenerator
      extended byorg.freehep.aid.AbstractCPPGenerator
All Implemented Interfaces:
Generator
Direct Known Subclasses:
AbstractCPPHeaderGenerator, JNICodeGenerator

public abstract class AbstractCPPGenerator
extends AbstractGenerator

Version:
$Id: AbstractCPPGenerator.java,v 1.15 2005/04/26 18:17:46 duns Exp $
Author:
Mark Donszelmann
Source Code:
AbstractCPPGenerator.java

Field Summary
protected  CPPTypeConverter converter
           
protected  UserProperties includeProperties
           
protected static String language
           
protected  UserProperties namesProperties
           
protected  UserProperties sysIncludeProperties
           
protected  UserProperties typeProperties
           
protected  UserProperties valueProperties
           
 
Fields inherited from class org.freehep.aid.AbstractGenerator
properties
 
Constructor Summary
AbstractCPPGenerator(String propDir)
           
 
Method Summary
protected  void includeFrom(IType type, String className, SortedSet sysIncludes, SortedSet includes, String namespace, SortedSet types)
           
protected  void includeFrom(String name, String className, SortedSet sysIncludes, SortedSet includes, String namespace, SortedSet types)
           
protected  void includeStatements(IClass clazz, SortedSet sysIncludes, SortedSet includes, String namespace, SortedSet types)
           
protected  String namedType(INamedType namedType, String nameSpace)
           
protected  String namespace(IClass clazz)
           
protected abstract  String prefix()
           
protected  SortedSet printIncludeStatements(IndentPrintWriter out, IClass clazz)
           
 
Methods inherited from class org.freehep.aid.AbstractGenerator
directory, filename, getProperties, print, warning
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

language

protected static final String language
See Also:
Constant Field Values

typeProperties

protected UserProperties typeProperties

sysIncludeProperties

protected UserProperties sysIncludeProperties

includeProperties

protected UserProperties includeProperties

valueProperties

protected UserProperties valueProperties

namesProperties

protected UserProperties namesProperties

converter

protected CPPTypeConverter converter
Constructor Detail

AbstractCPPGenerator

public AbstractCPPGenerator(String propDir)
Method Detail

prefix

protected abstract String prefix()

namespace

protected String namespace(IClass clazz)

printIncludeStatements

protected SortedSet printIncludeStatements(IndentPrintWriter out,
                                           IClass clazz)

includeStatements

protected void includeStatements(IClass clazz,
                                 SortedSet sysIncludes,
                                 SortedSet includes,
                                 String namespace,
                                 SortedSet types)

includeFrom

protected void includeFrom(IType type,
                           String className,
                           SortedSet sysIncludes,
                           SortedSet includes,
                           String namespace,
                           SortedSet types)

includeFrom

protected void includeFrom(String name,
                           String className,
                           SortedSet sysIncludes,
                           SortedSet includes,
                           String namespace,
                           SortedSet types)

namedType

protected String namedType(INamedType namedType,
                           String nameSpace)

FreeHEP API
Version current

Copyright © 2000-2004 FreeHEP, All Rights Reserved.