org.apache.tuscany.sca.cpp.tools.services
Class ServicesGenerator
java.lang.Object
org.apache.tuscany.sca.cpp.tools.common.CParsingTool
org.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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ServicesGenerator
public ServicesGenerator(java.lang.String[] args)
throws java.lang.Exception
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