[Hdrflow-svn] SF.net SVN: hdrflow: [262] trunk/lib/extras/src/imf
Status: Pre-Alpha
Brought to you by:
glslang
From: <gl...@us...> - 2007-08-20 21:24:47
|
Revision: 262 http://hdrflow.svn.sourceforge.net/hdrflow/?rev=262&view=rev Author: glslang Date: 2007-08-20 14:24:45 -0700 (Mon, 20 Aug 2007) Log Message: ----------- +small abstraction Modified Paths: -------------- trunk/lib/extras/src/imf/hdr/hdr.cpp trunk/lib/extras/src/imf/imf_common.cpp trunk/lib/extras/src/imf/imf_common.hpp Modified: trunk/lib/extras/src/imf/hdr/hdr.cpp =================================================================== --- trunk/lib/extras/src/imf/hdr/hdr.cpp 2007-08-20 21:11:39 UTC (rev 261) +++ trunk/lib/extras/src/imf/hdr/hdr.cpp 2007-08-20 21:24:45 UTC (rev 262) @@ -20,7 +20,7 @@ int imageInit( void ) { - return imf::image_init( ); + return imf::image_init( "HDRFlow Radiance plugin initialised\n" ); } BOOLEAN imageIsFile( char* fn, FILE* fp ) Modified: trunk/lib/extras/src/imf/imf_common.cpp =================================================================== --- trunk/lib/extras/src/imf/imf_common.cpp 2007-08-20 21:11:39 UTC (rev 261) +++ trunk/lib/extras/src/imf/imf_common.cpp 2007-08-20 21:24:45 UTC (rev 262) @@ -11,9 +11,9 @@ namespace hdrflow { namespace extras { namespace imf { -int image_init( void ) +int image_init( const std::string& msg ) { - ERR_printf( ERR__INFO, "HDRFlow DPX plugin initialised\n" ); + ERR_printf( ERR__INFO, const_cast<char*>( msg.c_str( ) ) ); return TRUE; } Modified: trunk/lib/extras/src/imf/imf_common.hpp =================================================================== --- trunk/lib/extras/src/imf/imf_common.hpp 2007-08-20 21:11:39 UTC (rev 261) +++ trunk/lib/extras/src/imf/imf_common.hpp 2007-08-20 21:24:45 UTC (rev 262) @@ -8,6 +8,8 @@ #ifndef IMF_COMMON_INC_ #define IMF_COMMON_INC_ +#include <string> + #include <maya/IMF.h> namespace hdrflow { namespace extras { namespace imf { @@ -35,7 +37,7 @@ int imageSupportsActiveWindow = FALSE; \ U_INT imageAccess = IMF_C_READ_RANDOM | IMF_C_WRITE; -int image_init( void ); +int image_init( const std::string& msg ); BOOLEAN image_is_file( char* fn, FILE* fp ); int image_read_open( IMF_OBJECT* imf ); int image_write_open( IMF_OBJECT* imf ); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |