00001 #ifndef __domChannel_h__ 00002 #define __domChannel_h__ 00003 00004 #include <dae/daeDocument.h> 00005 #include <dom/domTypes.h> 00006 #include <dom/domElements.h> 00007 00008 class DAE; 00009 00013 class domChannel : public daeElement 00014 { 00015 public: 00016 virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::CHANNEL; } 00017 static daeInt ID() { return 23; } 00018 virtual daeInt typeID() const { return ID(); } 00019 protected: // Attributes 00025 domUrifragment attrSource; 00031 xsToken attrTarget; 00032 00033 00034 public: //Accessors and Mutators 00039 domUrifragment getSource() const { return attrSource; } 00044 void setSource( domUrifragment atSource ) { attrSource = atSource; } 00045 00050 xsToken getTarget() const { return attrTarget; } 00055 void setTarget( xsToken atTarget ) { *(daeStringRef*)&attrTarget = atTarget;} 00056 00057 protected: 00061 domChannel(DAE& dae) : daeElement(dae), attrSource(dae, *this), attrTarget() {} 00065 virtual ~domChannel() {} 00069 virtual domChannel &operator=( const domChannel &cpy ) { (void)cpy; return *this; } 00070 00071 public: // STATIC METHODS 00076 static DLLSPEC daeElementRef create(DAE& dae); 00082 static DLLSPEC daeMetaElement* registerElement(DAE& dae); 00083 }; 00084 00085 00086 #endif