All Downloads are FREE. Search and download functionalities are using the official Maven repository.

templates.thrift_cpp.client.schema.stub_additional.cpp.vm Maven / Gradle / Ivy

There is a newer version: 3.5.0
Show newest version
#parse("thrift_cpp/include/cxx_schema_include.vm")
$codewriter.setCurrentCxxFilename("stub","${interfaceName}_stub_additional.cpp")
/**
 * 实现所有struct对象的'<'操作符 (C++11) 
* C++11 compiler or VS2015 or above required
* $GENERAED_BY
*/ \#include "${interfaceName}_types.h" #foreach($entry in $structGenseqMap.entries()) #foreach($type in $entry.value) #if(!$type.enum && !$type.extThriftStruct) #set($thriftStub = ${schemainfo.toStubCxxType($type.baseClass)}) #set($typeClass = ${thriftStub.replaceAll("\W+","_")}) #set ( $OPERATOR_PRE = "_${UP_IF_NAME}_${typeClass}_OPERATOR") #ifndef $OPERATOR_PRE \#define $OPERATOR_PRE bool ${thriftStub}::operator<(const ${thriftStub} &rhs) const{ return false; } #endif // !$OPERATOR_PRE #end###if(!$type.enum && !$type.extThriftStruct) #end##foreach($type) #end##foreach($entry)




© 2015 - 2025 Weber Informatics LLC | Privacy Policy