TuttleOFX
1
|
00001 #ifndef _TUTTLE_COMMON_OFX_CORE_HPP_ 00002 #define _TUTTLE_COMMON_OFX_CORE_HPP_ 00003 00004 #include <ofxCore.h> 00005 #include <ostream> 00006 00007 namespace tuttle { 00008 namespace ofx { 00009 00010 /** @brief maps status to a string */ 00011 std::string mapStatusToString( const OfxStatus stat ); 00012 00013 } 00014 } 00015 00016 std::ostream& operator<<( std::ostream& os, const OfxPlugin& v ); 00017 00018 00019 inline std::ostream& operator<<( std::ostream& out, const OfxPointI& p ) 00020 { 00021 return out << "x:" << p.x << " y:" << p.y; 00022 } 00023 00024 inline std::ostream& operator<<( std::ostream& out, const OfxPointD& p ) 00025 { 00026 return out << "x:" << p.x << " y:" << p.y; 00027 } 00028 00029 inline std::ostream& operator<<( std::ostream& out, const OfxRangeI& r ) 00030 { 00031 return out << "min:" << r.min << " max:" << r.max; 00032 } 00033 00034 inline std::ostream& operator<<( std::ostream& out, const OfxRangeD& r ) 00035 { 00036 return out << "min:" << r.min << " max:" << r.max; 00037 } 00038 00039 inline std::ostream& operator<<( std::ostream& out, const OfxRectI& r ) 00040 { 00041 return out << "x1:" << r.x1 << " y1:" << r.y1 << " x2:" << r.x2 << " y2:" << r.y2; 00042 } 00043 00044 inline std::ostream& operator<<( std::ostream& out, const OfxRectD& r ) 00045 { 00046 return out << "x1:" << r.x1 << " y1:" << r.y1 << " x2:" << r.x2 << " y2:" << r.y2; 00047 } 00048 00049 00050 #endif 00051