⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 txmputils.incl_cpp

📁 flash xmp sdk,flash官方SDK
💻 INCL_CPP
📖 第 1 页 / 共 2 页
字号:
// =================================================================================================// ADOBE SYSTEMS INCORPORATED// Copyright 2002-2007 Adobe Systems Incorporated// All Rights Reserved//// NOTICE:	Adobe permits you to use, modify, and distribute this file in accordance with the terms// of the Adobe license agreement accompanying it.// =================================================================================================//	================================================================================================/// \file TXMPUtils.incl_cpp/// \brief The implementation of the TXMPUtils template class.#include "XMP.hpp"#include "client-glue/WXMP_Common.hpp"#include "client-glue/WXMPUtils.hpp"// =================================================================================================// Implementation Guidelines// =========================//// The implementations of the template functions are very stylized. ...//// =================================================================================================XMP_MethodIntro(TXMPUtils,void)::ComposeArrayItemPath ( XMP_StringPtr schemaNS,					   XMP_StringPtr arrayName,					   XMP_Index	 itemIndex,					   tStringObj *  fullPath ){	XMP_StringPtr pathPtr = 0;	XMP_StringLen pathLen = 0;	WrapCheckVoid ( zXMPUtils_ComposeArrayItemPath_1 ( schemaNS, arrayName, itemIndex, &pathPtr, &pathLen ) );	if ( fullPath != 0 ) fullPath->assign ( pathPtr, pathLen );	WXMPUtils_Unlock_1 ( 0 );}// -------------------------------------------------------------------------------------------------XMP_MethodIntro(TXMPUtils,void)::ComposeStructFieldPath ( XMP_StringPtr schemaNS,						 XMP_StringPtr structName,						 XMP_StringPtr fieldNS,						 XMP_StringPtr fieldName,						 tStringObj *  fullPath ){	XMP_StringPtr pathPtr = 0;	XMP_StringLen pathLen = 0;	WrapCheckVoid ( zXMPUtils_ComposeStructFieldPath_1 ( schemaNS, structName, fieldNS, fieldName, &pathPtr, &pathLen ) );	if ( fullPath != 0 ) fullPath->assign ( pathPtr, pathLen );	WXMPUtils_Unlock_1 ( 0 );}// -------------------------------------------------------------------------------------------------XMP_MethodIntro(TXMPUtils,void)::ComposeQualifierPath ( XMP_StringPtr schemaNS,					   XMP_StringPtr propName,					   XMP_StringPtr qualNS,					   XMP_StringPtr qualName,					   tStringObj *	 fullPath ){	XMP_StringPtr pathPtr = 0;	XMP_StringLen pathLen = 0;	WrapCheckVoid ( zXMPUtils_ComposeQualifierPath_1 ( schemaNS, propName, qualNS, qualName, &pathPtr, &pathLen ) );	if ( fullPath != 0 ) fullPath->assign ( pathPtr, pathLen );	WXMPUtils_Unlock_1 ( 0 );}// -------------------------------------------------------------------------------------------------XMP_MethodIntro(TXMPUtils,void)::ComposeLangSelector ( XMP_StringPtr schemaNS,					  XMP_StringPtr arrayName,					  XMP_StringPtr langName,					  tStringObj *	fullPath ){	XMP_StringPtr pathPtr = 0;	XMP_StringLen pathLen = 0;	WrapCheckVoid ( zXMPUtils_ComposeLangSelector_1 ( schemaNS, arrayName, langName, &pathPtr, &pathLen ) );	if ( fullPath != 0 ) fullPath->assign ( pathPtr, pathLen );	WXMPUtils_Unlock_1 ( 0 );}// -------------------------------------------------------------------------------------------------XMP_MethodIntro(TXMPUtils,void)::ComposeLangSelector ( XMP_StringPtr		 schemaNS,					  XMP_StringPtr		 arrayName,					  const tStringObj & langName,					  tStringObj *		 fullPath ){	TXMPUtils::ComposeLangSelector ( schemaNS, arrayName, langName.c_str(), fullPath );}// -------------------------------------------------------------------------------------------------XMP_MethodIntro(TXMPUtils,void)::ComposeFieldSelector ( XMP_StringPtr schemaNS,					   XMP_StringPtr arrayName,					   XMP_StringPtr fieldNS,					   XMP_StringPtr fieldName,					   XMP_StringPtr fieldValue,					   tStringObj *	 fullPath ){	XMP_StringPtr pathPtr = 0;	XMP_StringLen pathLen = 0;	WrapCheckVoid ( zXMPUtils_ComposeFieldSelector_1 ( schemaNS, arrayName, fieldNS, fieldName, fieldValue,													   &pathPtr, &pathLen ) );	if ( fullPath != 0 ) fullPath->assign ( pathPtr, pathLen );	WXMPUtils_Unlock_1 ( 0 );}// -------------------------------------------------------------------------------------------------XMP_MethodIntro(TXMPUtils,void)::ComposeFieldSelector ( XMP_StringPtr	  schemaNS,					   XMP_StringPtr	  arrayName,					   XMP_StringPtr	  fieldNS,					   XMP_StringPtr	  fieldName,					   const tStringObj & fieldValue,					   tStringObj *		  fullPath ){	TXMPUtils::ComposeFieldSelector ( schemaNS, arrayName, fieldNS, fieldName, fieldValue.c_str(), fullPath );}// -------------------------------------------------------------------------------------------------// -------------------------------------------------------------------------------------------------XMP_MethodIntro(TXMPUtils,void)::ConvertFromBool ( bool		   binValue,				  tStringObj * strValue ){	XMP_StringPtr strPtr = 0;	XMP_StringLen strLen = 0;	WrapCheckVoid ( zXMPUtils_ConvertFromBool_1 ( binValue, &strPtr, &strLen ) );	if ( strValue != 0 ) strValue->assign ( strPtr, strLen );	WXMPUtils_Unlock_1 ( 0 );}// -------------------------------------------------------------------------------------------------XMP_MethodIntro(TXMPUtils,void)::ConvertFromInt ( long		   binValue,				 XMP_StringPtr format,				 tStringObj *  strValue ){	XMP_StringPtr strPtr = 0;	XMP_StringLen strLen = 0;	WrapCheckVoid ( zXMPUtils_ConvertFromInt_1 ( binValue, format, &strPtr, &strLen ) );	if ( strValue != 0 ) strValue->assign ( strPtr, strLen );	WXMPUtils_Unlock_1 ( 0 );}// -------------------------------------------------------------------------------------------------XMP_MethodIntro(TXMPUtils,void)::ConvertFromInt64 ( long long 	 binValue,				   XMP_StringPtr format,				   tStringObj *  strValue ){	XMP_StringPtr strPtr = 0;	XMP_StringLen strLen = 0;	WrapCheckVoid ( zXMPUtils_ConvertFromInt64_1 ( binValue, format, &strPtr, &strLen ) );	if ( strValue != 0 ) strValue->assign ( strPtr, strLen );	WXMPUtils_Unlock_1 ( 0 );}// -------------------------------------------------------------------------------------------------XMP_MethodIntro(TXMPUtils,void)::ConvertFromFloat ( double		 binValue,				   XMP_StringPtr format,				   tStringObj *	 strValue ){	XMP_StringPtr strPtr = 0;	XMP_StringLen strLen = 0;	WrapCheckVoid ( zXMPUtils_ConvertFromFloat_1 ( binValue, format, &strPtr, &strLen ) );	if ( strValue != 0 ) strValue->assign ( strPtr, strLen );	WXMPUtils_Unlock_1 ( 0 );}// -------------------------------------------------------------------------------------------------XMP_MethodIntro(TXMPUtils,void)::ConvertFromDate ( const XMP_DateTime & binValue,				  tStringObj *		   strValue ){	XMP_StringPtr strPtr = 0;	XMP_StringLen strLen = 0;	WrapCheckVoid ( zXMPUtils_ConvertFromDate_1 ( binValue, &strPtr, &strLen ) );	if ( strValue != 0 ) strValue->assign ( strPtr, strLen );	WXMPUtils_Unlock_1 ( 0 );}// -------------------------------------------------------------------------------------------------XMP_MethodIntro(TXMPUtils,bool)::ConvertToBool ( XMP_StringPtr strValue ){	WrapCheckBool ( value, zXMPUtils_ConvertToBool_1 ( strValue ) );	return value;}// -------------------------------------------------------------------------------------------------XMP_MethodIntro(TXMPUtils,bool)::ConvertToBool ( const tStringObj & strValue ){	return TXMPUtils::ConvertToBool ( strValue.c_str() );}// -------------------------------------------------------------------------------------------------XMP_MethodIntro(TXMPUtils,long)::ConvertToInt ( XMP_StringPtr strValue ){	WrapCheckInt32 ( value, zXMPUtils_ConvertToInt_1 ( strValue ) );	return value;}// -------------------------------------------------------------------------------------------------XMP_MethodIntro(TXMPUtils,long)::ConvertToInt ( const tStringObj & strValue ){	return TXMPUtils::ConvertToInt ( strValue.c_str() );}// -------------------------------------------------------------------------------------------------XMP_MethodIntro(TXMPUtils,long long)::ConvertToInt64 ( XMP_StringPtr strValue ){	WrapCheckInt64 ( value, zXMPUtils_ConvertToInt64_1 ( strValue ) );	return value;}// -------------------------------------------------------------------------------------------------XMP_MethodIntro(TXMPUtils,long long)::ConvertToInt64 ( const tStringObj & strValue ){	return TXMPUtils::ConvertToInt64 ( strValue.c_str() );}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -