[Jahshaka-cvs] openlibraries/src/openpluginlib/pl/pcos property.cpp, 1.31, 1.32
Status: Beta
Brought to you by:
jahshaka
From: tim <tim...@us...> - 2007-05-02 15:19:09
|
Update of /cvsroot/openlibraries/openlibraries/src/openpluginlib/pl/pcos In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv32216/src/openpluginlib/pl/pcos Modified Files: property.cpp Log Message: openpluginlib - add support for image_type_ptr to pcos::property not the ideal method of adding this support, as now there is an include dependency from OIL to OPL. However, without either refactoring or relocation of pcos::property it can't be done. Index: property.cpp =================================================================== RCS file: /cvsroot/openlibraries/openlibraries/src/openpluginlib/pl/pcos/property.cpp,v retrieving revision 1.31 retrieving revision 1.32 diff -u -d -r1.31 -r1.32 --- property.cpp 1 May 2007 03:33:50 -0000 1.31 +++ property.cpp 2 May 2007 15:19:04 -0000 1.32 @@ -16,6 +16,10 @@ #include <openpluginlib/pl/string.hpp> #include <openpluginlib/pl/utf8_utils.hpp> +#include <openimagelib/il/basic_image.hpp> + +namespace il = olib::openimagelib::il; + namespace olib { namespace openpluginlib { namespace pcos { class property::property_impl @@ -261,6 +265,11 @@ template OPENPLUGINLIB_DECLSPEC bool property::is_a< wstring_list >() const; template OPENPLUGINLIB_DECLSPEC bool property::is_a< string_list >() const; +template OPENPLUGINLIB_DECLSPEC il::image_type_ptr property::value< il::image_type_ptr >() const; +template OPENPLUGINLIB_DECLSPEC void property::set< il::image_type_ptr >( const il::image_type_ptr& ); +template OPENPLUGINLIB_DECLSPEC bool property::is_a< il::image_type_ptr >() const; + + // implementation of parsing code for pcos::any template < typename T > T parse_string( const wstring& str ) @@ -362,4 +371,9 @@ return 0; } +template <> OPENPLUGINLIB_DECLSPEC il::image_type_ptr parse_string( const wstring& ) +{ + return il::image_type_ptr(); +} + } } } |