From: James P. T. <jpt...@us...> - 2008-05-18 18:37:15
|
Update of /cvsroot/aaf/AAF/examples2/axLib In directory sc8-pr-cvs11.sourceforge.net:/tmp/cvs-serv26279/examples2/axLib Modified Files: AxComponent.cpp AxComponent.h AxTypes.cpp AxUtil.cpp axLib.vcproj Log Message: Commit in preparation for AAFAnalyzer integration into registratin and compliance web site. These are the last fiew analyzer changes completed last October but held back in developer private repository until now. Resolve tracker items 1388192 Regression Testing Speed Ratio, 1388257 Unreferenced OperationDefinition, 388300 Enhancement to TestResult for GUI, 1388330 Better Tests Needed, 1388326 StaticMobSlots in the Derivation Chain, 1388262 Regression Testing Data Definition Values, resolve incorrect reporting if REQ_EP_163/164 in effects test. Index: AxUtil.cpp =================================================================== RCS file: /cvsroot/aaf/AAF/examples2/axLib/AxUtil.cpp,v retrieving revision 1.23 retrieving revision 1.24 diff -C2 -d -r1.23 -r1.24 *** AxUtil.cpp 26 Feb 2008 05:44:57 -0000 1.23 --- AxUtil.cpp 18 May 2008 18:37:09 -0000 1.24 *************** *** 28,32 **** #include <stdlib.h> #include <string.h> - #include <limits.h> #include <errno.h> --- 28,31 ---- Index: AxTypes.cpp =================================================================== RCS file: /cvsroot/aaf/AAF/examples2/axLib/AxTypes.cpp,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** AxTypes.cpp 26 Feb 2008 05:44:57 -0000 1.11 --- AxTypes.cpp 18 May 2008 18:37:09 -0000 1.12 *************** *** 37,41 **** #include <string> - #include <string.h> #include <assert.h> --- 37,40 ---- Index: AxComponent.cpp =================================================================== RCS file: /cvsroot/aaf/AAF/examples2/axLib/AxComponent.cpp,v retrieving revision 1.26 retrieving revision 1.27 diff -C2 -d -r1.26 -r1.27 *** AxComponent.cpp 18 Jul 2007 04:58:37 -0000 1.26 --- AxComponent.cpp 18 May 2008 18:37:09 -0000 1.27 *************** *** 45,48 **** --- 45,65 ---- } + std::pair<bool,aafLength_t> AxComponent::ExistsLength() + { + std::pair<bool,aafLength_t> len(true,0); + + AAFRESULT hresult = _spIaafComponent->GetLength( &len.second ); + if ( hresult == AAFRESULT_PROP_NOT_PRESENT ) + { + len.first = false; + } + else + { + CHECK_HRESULT( hresult ); + } + + return len; + } + void AxComponent::SetLength( const aafLength_t& len ) { Index: AxComponent.h =================================================================== RCS file: /cvsroot/aaf/AAF/examples2/axLib/AxComponent.h,v retrieving revision 1.25 retrieving revision 1.26 diff -C2 -d -r1.25 -r1.26 *** AxComponent.h 18 Jul 2007 04:58:37 -0000 1.25 --- AxComponent.h 18 May 2008 18:37:09 -0000 1.26 *************** *** 38,41 **** --- 38,42 ---- aafLength_t GetLength(); + std::pair<bool,aafLength_t> ExistsLength(); void SetLength( const aafLength_t& len ); Index: axLib.vcproj =================================================================== RCS file: /cvsroot/aaf/AAF/examples2/axLib/axLib.vcproj,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** axLib.vcproj 20 Dec 2005 14:34:24 -0000 1.6 --- axLib.vcproj 18 May 2008 18:37:09 -0000 1.7 *************** *** 2,13 **** <VisualStudioProject ProjectType="Visual C++" ! Version="7.10" Name="axLib" ! SccProjectName="" ! SccLocalPath=""> <Platforms> <Platform ! Name="Win32"/> </Platforms> [...1689 lines suppressed...] ! RelativePath="AxSmartPointer.h" ! > </File> <File ! RelativePath=".\AxStorageErrors.h" ! > </File> <File ! RelativePath=".\AxTaggedValue.h" ! > </File> <File ! RelativePath="AxTypes.h" ! > </File> <File ! RelativePath="AxUtil.h" ! > </File> </Filter> |