📄 txmpmeta.incl_cpp
字号:
XMP_StringPtr propName, XMP_StringPtr qualNS, XMP_StringPtr qualName ) const{ WrapCheckBool ( exists, zXMPMeta_DoesQualifierExist_1 ( schemaNS, propName, qualNS, qualName ) ); return exists;}// =================================================================================================// Specialized Get and Set functions// =================================XMP_MethodIntro(TXMPMeta,bool)::GetLocalizedText ( XMP_StringPtr schemaNS, XMP_StringPtr altTextName, XMP_StringPtr genericLang, XMP_StringPtr specificLang, tStringObj * actualLang, tStringObj * itemValue, XMP_OptionBits * options ) const{ XMP_StringPtr langPtr = 0; XMP_StringLen langLen = 0; XMP_StringPtr itemPtr = 0; XMP_StringLen itemLen = 0; WrapCheckBool ( found, zXMPMeta_GetLocalizedText_1 ( schemaNS, altTextName, genericLang, specificLang, &langPtr, &langLen, &itemPtr, &itemLen, options ) ); if ( found ) { if ( actualLang != 0 ) actualLang->assign ( langPtr, langLen ); if ( itemValue != 0 ) itemValue->assign ( itemPtr, itemLen ); WXMPMeta_UnlockObject_1 ( this->xmpRef, kXMP_NoOptions ); } return found;}// -------------------------------------------------------------------------------------------------XMP_MethodIntro(TXMPMeta,void)::SetLocalizedText ( XMP_StringPtr schemaNS, XMP_StringPtr altTextName, XMP_StringPtr genericLang, XMP_StringPtr specificLang, XMP_StringPtr itemValue, XMP_OptionBits options /* = 0 */ ){ WrapCheckVoid ( zXMPMeta_SetLocalizedText_1 ( schemaNS, altTextName, genericLang, specificLang, itemValue, options ) );}// -------------------------------------------------------------------------------------------------XMP_MethodIntro(TXMPMeta,void)::SetLocalizedText ( XMP_StringPtr schemaNS, XMP_StringPtr altTextName, XMP_StringPtr genericLang, XMP_StringPtr specificLang, const tStringObj & itemValue, XMP_OptionBits options /* = 0 */ ){ this->SetLocalizedText ( schemaNS, altTextName, genericLang, specificLang, itemValue.c_str(), options );}// -------------------------------------------------------------------------------------------------XMP_MethodIntro(TXMPMeta,bool)::GetProperty_Bool ( XMP_StringPtr schemaNS, XMP_StringPtr propName, bool * propValue, XMP_OptionBits * options ) const{ XMP_Bool binValue; WrapCheckBool ( found, zXMPMeta_GetProperty_Bool_1 ( schemaNS, propName, &binValue, options ) ); if ( found && (propValue != 0) ) *propValue = binValue; return found;}// -------------------------------------------------------------------------------------------------XMP_MethodIntro(TXMPMeta,bool)::GetProperty_Int ( XMP_StringPtr schemaNS, XMP_StringPtr propName, long * propValue, XMP_OptionBits * options ) const{ XMP_Int32 abiValue; WrapCheckBool ( found, zXMPMeta_GetProperty_Int_1 ( schemaNS, propName, &abiValue, options ) ); if ( found && (propValue != 0) ) *propValue = abiValue; return found;}// -------------------------------------------------------------------------------------------------XMP_MethodIntro(TXMPMeta,bool)::GetProperty_Int64 ( XMP_StringPtr schemaNS, XMP_StringPtr propName, long long * propValue, XMP_OptionBits * options ) const{ XMP_Int64 abiValue; WrapCheckBool ( found, zXMPMeta_GetProperty_Int64_1 ( schemaNS, propName, &abiValue, options ) ); if ( found && (propValue != 0) ) *propValue = abiValue; return found;}// -------------------------------------------------------------------------------------------------XMP_MethodIntro(TXMPMeta,bool)::GetProperty_Float ( XMP_StringPtr schemaNS, XMP_StringPtr propName, double * propValue, XMP_OptionBits * options ) const{ WrapCheckBool ( found, zXMPMeta_GetProperty_Float_1 ( schemaNS, propName, propValue, options ) ); return found;}// -------------------------------------------------------------------------------------------------XMP_MethodIntro(TXMPMeta,bool)::GetProperty_Date ( XMP_StringPtr schemaNS, XMP_StringPtr propName, XMP_DateTime * propValue, XMP_OptionBits * options ) const{ WrapCheckBool ( found, zXMPMeta_GetProperty_Date_1 ( schemaNS, propName, propValue, options ) ); return found;}// -------------------------------------------------------------------------------------------------XMP_MethodIntro(TXMPMeta,void)::SetProperty_Bool ( XMP_StringPtr schemaNS, XMP_StringPtr propName, bool propValue, XMP_OptionBits options /* = 0 */ ){ WrapCheckVoid ( zXMPMeta_SetProperty_Bool_1 ( schemaNS, propName, propValue, options ) );}// -------------------------------------------------------------------------------------------------XMP_MethodIntro(TXMPMeta,void)::SetProperty_Int ( XMP_StringPtr schemaNS, XMP_StringPtr propName, long propValue, XMP_OptionBits options /* = 0 */ ){ WrapCheckVoid ( zXMPMeta_SetProperty_Int_1 ( schemaNS, propName, propValue, options ) );}// -------------------------------------------------------------------------------------------------XMP_MethodIntro(TXMPMeta,void)::SetProperty_Int64 ( XMP_StringPtr schemaNS, XMP_StringPtr propName, long long propValue, XMP_OptionBits options /* = 0 */ ){ WrapCheckVoid ( zXMPMeta_SetProperty_Int64_1 ( schemaNS, propName, propValue, options ) );}// -------------------------------------------------------------------------------------------------XMP_MethodIntro(TXMPMeta,void)::SetProperty_Float ( XMP_StringPtr schemaNS, XMP_StringPtr propName, double propValue, XMP_OptionBits options /* = 0 */ ){ WrapCheckVoid ( zXMPMeta_SetProperty_Float_1 ( schemaNS, propName, propValue, options ) );}// -------------------------------------------------------------------------------------------------XMP_MethodIntro(TXMPMeta,void)::SetProperty_Date ( XMP_StringPtr schemaNS, XMP_StringPtr propName, const XMP_DateTime & propValue, XMP_OptionBits options /* = 0 */ ){ WrapCheckVoid ( zXMPMeta_SetProperty_Date_1 ( schemaNS, propName, propValue, options ) );}// =================================================================================================// Miscellaneous Member Functions// ==============================XMP_MethodIntro(TXMPMeta,XMPMetaRef)::GetInternalRef() const{ return this->xmpRef;}// -------------------------------------------------------------------------------------------------XMP_MethodIntro(TXMPMeta,void)::GetObjectName ( tStringObj * name ) const{ XMP_StringPtr namePtr = 0; XMP_StringLen nameLen = 0; WrapCheckVoid ( zXMPMeta_GetObjectName_1 ( &namePtr, &nameLen ) ); if ( name != 0 ) name->assign ( namePtr, nameLen ); WXMPMeta_UnlockObject_1 ( this->xmpRef, 0 );}// -------------------------------------------------------------------------------------------------XMP_MethodIntro(TXMPMeta,void)::SetObjectName ( XMP_StringPtr name ){ WrapCheckVoid ( zXMPMeta_SetObjectName_1 ( name ) );}// -------------------------------------------------------------------------------------------------XMP_MethodIntro(TXMPMeta,void)::SetObjectName ( tStringObj name ){ this->SetObjectName ( name.c_str() );}// -------------------------------------------------------------------------------------------------XMP_MethodIntro(TXMPMeta,XMP_OptionBits)::GetObjectOptions() const{ WrapCheckOptions ( options, zXMPMeta_GetObjectOptions_1() ); return options;}// -------------------------------------------------------------------------------------------------XMP_MethodIntro(TXMPMeta,void)::SetObjectOptions ( XMP_OptionBits options ){ WrapCheckVoid ( zXMPMeta_SetObjectOptions_1 ( options ) );}// -------------------------------------------------------------------------------------------------XMP_MethodIntro(TXMPMeta,TXMPMeta<tStringObj>)::Clone ( XMP_OptionBits options ) const{ WrapCheckMetaRef ( cloneRef, zXMPMeta_Clone_1 ( options ) ); return TXMPMeta<tStringObj> ( cloneRef ); // Ref construct will increment the clientRefs.}// -------------------------------------------------------------------------------------------------XMP_MethodIntro(TXMPMeta,XMP_Index)::CountArrayItems ( XMP_StringPtr schemaNS, XMP_StringPtr arrayName ) const{ WrapCheckIndex ( count, zXMPMeta_CountArrayItems_1 ( schemaNS, arrayName ) ); return count;}// -------------------------------------------------------------------------------------------------XMP_MethodIntro(TXMPMeta,XMP_Status)::DumpObject ( XMP_TextOutputProc outProc, void * refCon ) const{ TOPW_Info info ( outProc, refCon ); WrapCheckStatus ( status, zXMPMeta_DumpObject_1 ( TextOutputProcWrapper, &info ) ); return status;}// -------------------------------------------------------------------------------------------------XMP_MethodIntro(TXMPMeta,void)::ParseFromBuffer ( XMP_StringPtr buffer, XMP_StringLen bufferSize, XMP_OptionBits options /* = 0 */ ){ WrapCheckVoid ( zXMPMeta_ParseFromBuffer_1 ( buffer, bufferSize, options ) );}// -------------------------------------------------------------------------------------------------XMP_MethodIntro(TXMPMeta,void)::SerializeToBuffer ( tStringObj * pktString, XMP_OptionBits options, XMP_StringLen padding, XMP_StringPtr newline, XMP_StringPtr indent, XMP_Index baseIndent /* = 0 */ ) const{ XMP_StringPtr resultPtr = 0; XMP_StringLen resultLen = 0; WrapCheckVoid ( zXMPMeta_SerializeToBuffer_1 ( &resultPtr, &resultLen, options, padding, newline, indent, baseIndent ) ); if ( pktString != 0 ) pktString->assign ( resultPtr, resultLen ); WXMPMeta_UnlockObject_1 ( this->xmpRef, 0 );}// -------------------------------------------------------------------------------------------------XMP_MethodIntro(TXMPMeta,void)::SerializeToBuffer ( tStringObj * pktString, XMP_OptionBits options /* = 0 */, XMP_StringLen padding /* = 0 */ ) const{ this->SerializeToBuffer ( pktString, options, padding, "", "", 0 );}// -------------------------------------------------------------------------------------------------// =================================================================================================
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -