org.apache.tuscany.sca.cpp.tools.services
Class ServicesGenerator

java.lang.Object
  extended byorg.apache.tuscany.sca.cpp.tools.common.CParsingTool
      extended byorg.apache.tuscany.sca.cpp.tools.services.ServicesGenerator

public class ServicesGenerator
extends CParsingTool

This class is the main class that handles the function that parses a C++ interface header file into a DOM that holds all the semantic information about the interface - method names, parameters and return values. It then uses XSLT to generate different "views" of this data plus the parameter map from other sources that are the C++ programs for the proxy and wrapper implementations and headers.


Field Summary
 
Fields inherited from class org.apache.tuscany.sca.cpp.tools.common.CParsingTool
failed, headers
 
Constructor Summary
ServicesGenerator(java.lang.String[] args)
           
 
Method Summary
static void handleInterfaceHeader(java.util.Map parameters, boolean forReference)
           
 
Methods inherited from class org.apache.tuscany.sca.cpp.tools.common.CParsingTool
checkFile, maybeCreateDirectory, preparseHeaders, printUsage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServicesGenerator

public ServicesGenerator(java.lang.String[] args)
                  throws java.lang.Exception
Method Detail

handleInterfaceHeader

public static void handleInterfaceHeader(java.util.Map parameters,
                                         boolean forReference)
                                  throws java.lang.Exception
Parameters:
parameters -
forReference - true if we are creating a proxy for a reference (rather than for a service)
Throws:
java.lang.Exception - The design is
  • handleInterfaceHeader
  • createDOMofMethods
  • createProxyCPPFromDom(outputDir, dom);
  • createProxyHeaderFromDom(outputDir, dom);
plus if we are not generating for a reference element
  • createWrapperCPPFromDom(outputDir, dom);
  • createWrapperHeaderFromDom(outputDir, dom);
      Each of the create.... methods calls createOutputFromDom with a different style sheet.


Copyright 2005 The Apache Software Foundation and Copyright IBM Corp. 2005 All Rights Reserved