templates.includes.webclient.gsoap.include.vm Maven / Gradle / Ivy
#set ( $gsoapHelper = $sourceinfo.gsoapHelper )
#set ( $referenceClassMap = $gsoapHelper.referenceClassMap )
#set ( $refClassPropertiesMap = $gsoapHelper.refClassPropertiesMap )
#set ( $stubClassProppertiesMap = $gsoapHelper.stubClassProppertiesMap)
#set ( $typeNameMap = $gsoapHelper.typeNameMap )
#set ( $C_UTILITS = "convert_utils" )
#set ( $C_TOSTRING = "tostring" )
#set ( $SUFFIX_FACTORY = "Factory" )
#set ( $className = "${sourceinfo.interfaceClass.simpleName}ByGSoap")
#set ( $factoryClassName = "${sourceinfo.interfaceClass.simpleName}$SUFFIX_FACTORY")
#set ( $serviceInfo = $sourceinfo.serviceInfo)
## 基本缩进量
#set ( $BASEINDENT = $gsoapHelper.getBaseIndentTabs($sourceinfo.baseClass))
## 所有webservice中的引用类型(java)
#set( $refClasses = $TOOL.sortBy($referenceClassMap.keySet(),"simpleName") )
## 所有webservice中的bean类型(java),不包含异常类
#set( $beanClasses = $TOOL.sortBy($gsoapHelper.beanClassMap.keySet(),"simpleName") )
## 输出引用类型using语句
## referenced为true时只include 被实际引用的类型
#macro( USING_REFCLASSES $indent $referenced)
#if(!$indent)#set($indent=$BASEINDENT)#end
#foreach($refClass in $refClasses )
#if(!$referenced||$sourceinfo.importedList[$refClass.simpleName])
$!indent using $refClass.simpleName = $gsoapHelper.toCppFullName($refClass);
#end
#end
#end
## using所有beanclass
#macro( USING_BEANCLASSES $indent )
#if(!$indent)#set($indent=$BASEINDENT)#end
#foreach($refClass in $refClasses )
#if(!$TOOL.isException($refClass))
$!indent using $refClass.simpleName = $gsoapHelper.toCppFullName($refClass);
#end
#end
#end
## referenced为true时只include 被实际引用的类型
#macro( INCLUDE_REFCLASS $referenced)
#foreach($refClass in $refClasses)
#if(!$referenced||$sourceinfo.importedList[$refClass.simpleName])
\#include "${refClass.simpleName}.h"
#end
#end
#end
## include所有bean类型
#macro( INCLUDE_BEANCLASS)
#foreach($refClass in $beanClasses)
\#include "${refClass.simpleName}.h"
#end
#end
#macro(defaultParamValue $value)#if( $source_type != "cpp" ) = $value#end#end
## 根据$source_type初始化所有修饰符变量
#macro( init_qualifier $source_type $workClassName)
## inline标记
#if( $source_type != "cpp" )
#set ( $PUBLIC = "public:" )
#set ( $PRIVATE = "private:" )
#set ( $PROTECTED = "protected:" )
#set ( $STATIC = "static " )
#else
#set ( $PUBLIC = "" )
#set ( $PRIVATE = "" )
#set ( $PROTECTED = "" )
#set ( $STATIC = "" )
#end
#if( $source_type == "hpp" )#set ( $INLINE = "inline " )#else#set ( $INLINE = "" )#end
## override标记
#if($source_type != "cpp")#set ( $OVERRIDE = " override " )#else#set ( $OVERRIDE = "" )#end
## 方法修饰符
#if($workClassName)
#if($source_type == "cpp")#set ( $METHOD_PREFIX = "${workClassName}::" )#else#set ( $METHOD_PREFIX = "" )#end
#else
#if($source_type == "cpp")#set ( $METHOD_PREFIX = "${className}::" )#else#set ( $METHOD_PREFIX = "" )#end
#end
#if($source_type != "cpp")#set ( $VIRTUAL = "virtual " )#end
#end
© 2015 - 2025 Weber Informatics LLC | Privacy Policy