TuttleOFX
1
|
00001 #ifndef _TUTTLE_HOST_OFX_ATTRIBUTE_CLIPACCESSOR_HPP_ 00002 #define _TUTTLE_HOST_OFX_ATTRIBUTE_CLIPACCESSOR_HPP_ 00003 00004 #include "OfxhAttributeAccessor.hpp" 00005 00006 namespace tuttle { 00007 namespace host { 00008 namespace ofx { 00009 namespace attribute { 00010 00011 /** 00012 * Base to both descriptor and instance it 00013 * is used to basically fetch common properties 00014 * by function name 00015 */ 00016 class OfxhClipAccessor : virtual public OfxhAttributeAccessor 00017 { 00018 public: 00019 /// @brief base ctor, for a descriptor 00020 OfxhClipAccessor(); 00021 00022 virtual ~OfxhClipAccessor() = 0; 00023 00024 /// is the clip optional 00025 bool isOptional() const; 00026 00027 const bool isConnected() const; 00028 00029 /** 00030 * @brief Connected 00031 * Says whether the clip is currently connected. 00032 */ 00033 void setConnected( const bool isConnected = true ); 00034 00035 00036 virtual bool verifyMagic() 00037 { 00038 return true; 00039 } 00040 00041 }; 00042 00043 } 00044 } 00045 } 00046 } 00047 00048 #endif 00049