12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106 |
- /*
- * Copyright 2006 Sony Computer Entertainment Inc.
- *
- * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this
- * file except in compliance with the License. You may obtain a copy of the License at:
- * http://research.scea.com/scea_shared_source_license.html
- *
- * Unless required by applicable law or agreed to in writing, software distributed under the License
- * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
- * implied. See the License for the specific language governing permissions and limitations under the
- * License.
- */
- #ifndef __domAsset_h__
- #define __domAsset_h__
- #include <dae/daeDocument.h>
- #include <dom/domTypes.h>
- #include <dom/domElements.h>
- class DAE;
- /**
- * The asset element defines asset management information regarding its parent
- * element.
- */
- class domAsset : public daeElement
- {
- public:
- virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::ASSET; }
- static daeInt ID() { return 664; }
- virtual daeInt typeID() const { return ID(); }
- public:
- class domContributor;
- typedef daeSmartRef<domContributor> domContributorRef;
- typedef daeTArray<domContributorRef> domContributor_Array;
- /**
- * The contributor element defines authoring information for asset management
- */
- class domContributor : public daeElement
- {
- public:
- virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::CONTRIBUTOR; }
- static daeInt ID() { return 665; }
- virtual daeInt typeID() const { return ID(); }
- public:
- class domAuthor;
- typedef daeSmartRef<domAuthor> domAuthorRef;
- typedef daeTArray<domAuthorRef> domAuthor_Array;
- /**
- * The author element contains a string with the author's name. There may
- * be only one author element.
- */
- class domAuthor : public daeElement
- {
- public:
- virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::AUTHOR; }
- static daeInt ID() { return 666; }
- virtual daeInt typeID() const { return ID(); }
- protected: // Value
- /**
- * The xsString value of the text data of this element.
- */
- xsString _value;
- public: //Accessors and Mutators
- /**
- * Gets the value of this element.
- * @return Returns a xsString of the value.
- */
- xsString getValue() const { return _value; }
- /**
- * Sets the _value of this element.
- * @param val The new value for this element.
- */
- void setValue( xsString val ) { *(daeStringRef*)&_value = val; }
- protected:
- /**
- * Constructor
- */
- domAuthor(DAE& dae) : daeElement(dae), _value() {}
- /**
- * Destructor
- */
- virtual ~domAuthor() {}
- /**
- * Overloaded assignment operator
- */
- virtual domAuthor &operator=( const domAuthor &cpy ) { (void)cpy; return *this; }
- public: // STATIC METHODS
- /**
- * Creates an instance of this class and returns a daeElementRef referencing it.
- * @return a daeElementRef referencing an instance of this object.
- */
- static DLLSPEC daeElementRef create(DAE& dae);
- /**
- * Creates a daeMetaElement object that describes this element in the meta object reflection framework.
- * If a daeMetaElement already exists it will return that instead of creating a new one.
- * @return A daeMetaElement describing this COLLADA element.
- */
- static DLLSPEC daeMetaElement* registerElement(DAE& dae);
- };
- class domAuthoring_tool;
- typedef daeSmartRef<domAuthoring_tool> domAuthoring_toolRef;
- typedef daeTArray<domAuthoring_toolRef> domAuthoring_tool_Array;
- /**
- * The authoring_tool element contains a string with the authoring tool's
- * name. There may be only one authoring_tool element.
- */
- class domAuthoring_tool : public daeElement
- {
- public:
- virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::AUTHORING_TOOL; }
- static daeInt ID() { return 667; }
- virtual daeInt typeID() const { return ID(); }
- protected: // Value
- /**
- * The xsString value of the text data of this element.
- */
- xsString _value;
- public: //Accessors and Mutators
- /**
- * Gets the value of this element.
- * @return Returns a xsString of the value.
- */
- xsString getValue() const { return _value; }
- /**
- * Sets the _value of this element.
- * @param val The new value for this element.
- */
- void setValue( xsString val ) { *(daeStringRef*)&_value = val; }
- protected:
- /**
- * Constructor
- */
- domAuthoring_tool(DAE& dae) : daeElement(dae), _value() {}
- /**
- * Destructor
- */
- virtual ~domAuthoring_tool() {}
- /**
- * Overloaded assignment operator
- */
- virtual domAuthoring_tool &operator=( const domAuthoring_tool &cpy ) { (void)cpy; return *this; }
- public: // STATIC METHODS
- /**
- * Creates an instance of this class and returns a daeElementRef referencing it.
- * @return a daeElementRef referencing an instance of this object.
- */
- static DLLSPEC daeElementRef create(DAE& dae);
- /**
- * Creates a daeMetaElement object that describes this element in the meta object reflection framework.
- * If a daeMetaElement already exists it will return that instead of creating a new one.
- * @return A daeMetaElement describing this COLLADA element.
- */
- static DLLSPEC daeMetaElement* registerElement(DAE& dae);
- };
- class domComments;
- typedef daeSmartRef<domComments> domCommentsRef;
- typedef daeTArray<domCommentsRef> domComments_Array;
- /**
- * The comments element contains a string with comments from this contributor.
- * There may be only one comments element.
- */
- class domComments : public daeElement
- {
- public:
- virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::COMMENTS; }
- static daeInt ID() { return 668; }
- virtual daeInt typeID() const { return ID(); }
- protected: // Value
- /**
- * The xsString value of the text data of this element.
- */
- xsString _value;
- public: //Accessors and Mutators
- /**
- * Gets the value of this element.
- * @return Returns a xsString of the value.
- */
- xsString getValue() const { return _value; }
- /**
- * Sets the _value of this element.
- * @param val The new value for this element.
- */
- void setValue( xsString val ) { *(daeStringRef*)&_value = val; }
- protected:
- /**
- * Constructor
- */
- domComments(DAE& dae) : daeElement(dae), _value() {}
- /**
- * Destructor
- */
- virtual ~domComments() {}
- /**
- * Overloaded assignment operator
- */
- virtual domComments &operator=( const domComments &cpy ) { (void)cpy; return *this; }
- public: // STATIC METHODS
- /**
- * Creates an instance of this class and returns a daeElementRef referencing it.
- * @return a daeElementRef referencing an instance of this object.
- */
- static DLLSPEC daeElementRef create(DAE& dae);
- /**
- * Creates a daeMetaElement object that describes this element in the meta object reflection framework.
- * If a daeMetaElement already exists it will return that instead of creating a new one.
- * @return A daeMetaElement describing this COLLADA element.
- */
- static DLLSPEC daeMetaElement* registerElement(DAE& dae);
- };
- class domCopyright;
- typedef daeSmartRef<domCopyright> domCopyrightRef;
- typedef daeTArray<domCopyrightRef> domCopyright_Array;
- /**
- * The copyright element contains a string with copyright information. There
- * may be only one copyright element.
- */
- class domCopyright : public daeElement
- {
- public:
- virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::COPYRIGHT; }
- static daeInt ID() { return 669; }
- virtual daeInt typeID() const { return ID(); }
- protected: // Value
- /**
- * The xsString value of the text data of this element.
- */
- xsString _value;
- public: //Accessors and Mutators
- /**
- * Gets the value of this element.
- * @return Returns a xsString of the value.
- */
- xsString getValue() const { return _value; }
- /**
- * Sets the _value of this element.
- * @param val The new value for this element.
- */
- void setValue( xsString val ) { *(daeStringRef*)&_value = val; }
- protected:
- /**
- * Constructor
- */
- domCopyright(DAE& dae) : daeElement(dae), _value() {}
- /**
- * Destructor
- */
- virtual ~domCopyright() {}
- /**
- * Overloaded assignment operator
- */
- virtual domCopyright &operator=( const domCopyright &cpy ) { (void)cpy; return *this; }
- public: // STATIC METHODS
- /**
- * Creates an instance of this class and returns a daeElementRef referencing it.
- * @return a daeElementRef referencing an instance of this object.
- */
- static DLLSPEC daeElementRef create(DAE& dae);
- /**
- * Creates a daeMetaElement object that describes this element in the meta object reflection framework.
- * If a daeMetaElement already exists it will return that instead of creating a new one.
- * @return A daeMetaElement describing this COLLADA element.
- */
- static DLLSPEC daeMetaElement* registerElement(DAE& dae);
- };
- class domSource_data;
- typedef daeSmartRef<domSource_data> domSource_dataRef;
- typedef daeTArray<domSource_dataRef> domSource_data_Array;
- /**
- * The source_data element contains a URI reference to the source data used
- * for this asset. There may be only one source_data element.
- */
- class domSource_data : public daeElement
- {
- public:
- virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::SOURCE_DATA; }
- static daeInt ID() { return 670; }
- virtual daeInt typeID() const { return ID(); }
- protected: // Value
- /**
- * The xsAnyURI value of the text data of this element.
- */
- xsAnyURI _value;
- public: //Accessors and Mutators
- /**
- * Gets the value of this element.
- * @return Returns a xsAnyURI of the value.
- */
- xsAnyURI &getValue() { return _value; }
- /**
- * Gets the value of this element.
- * @return Returns a constant xsAnyURI of the value.
- */
- const xsAnyURI &getValue() const { return _value; }
- /**
- * Sets the _value of this element.
- * @param val The new value for this element.
- */
- void setValue( const xsAnyURI &val ) { _value = val; }
- /**
- * Sets the _value of this element.
- * @param val The new value for this element.
- */
- void setValue( xsString val ) { _value = val; }
- protected:
- /**
- * Constructor
- */
- domSource_data(DAE& dae) : daeElement(dae), _value(dae, *this) {}
- /**
- * Destructor
- */
- virtual ~domSource_data() {}
- /**
- * Overloaded assignment operator
- */
- virtual domSource_data &operator=( const domSource_data &cpy ) { (void)cpy; return *this; }
- public: // STATIC METHODS
- /**
- * Creates an instance of this class and returns a daeElementRef referencing it.
- * @return a daeElementRef referencing an instance of this object.
- */
- static DLLSPEC daeElementRef create(DAE& dae);
- /**
- * Creates a daeMetaElement object that describes this element in the meta object reflection framework.
- * If a daeMetaElement already exists it will return that instead of creating a new one.
- * @return A daeMetaElement describing this COLLADA element.
- */
- static DLLSPEC daeMetaElement* registerElement(DAE& dae);
- };
- protected: // Elements
- /**
- * The author element contains a string with the author's name. There may
- * be only one author element. @see domAuthor
- */
- domAuthorRef elemAuthor;
- /**
- * The authoring_tool element contains a string with the authoring tool's
- * name. There may be only one authoring_tool element. @see domAuthoring_tool
- */
- domAuthoring_toolRef elemAuthoring_tool;
- /**
- * The comments element contains a string with comments from this contributor.
- * There may be only one comments element. @see domComments
- */
- domCommentsRef elemComments;
- /**
- * The copyright element contains a string with copyright information. There
- * may be only one copyright element. @see domCopyright
- */
- domCopyrightRef elemCopyright;
- /**
- * The source_data element contains a URI reference to the source data used
- * for this asset. There may be only one source_data element. @see domSource_data
- */
- domSource_dataRef elemSource_data;
- public: //Accessors and Mutators
- /**
- * Gets the author element.
- * @return a daeSmartRef to the author element.
- */
- const domAuthorRef getAuthor() const { return elemAuthor; }
- /**
- * Gets the authoring_tool element.
- * @return a daeSmartRef to the authoring_tool element.
- */
- const domAuthoring_toolRef getAuthoring_tool() const { return elemAuthoring_tool; }
- /**
- * Gets the comments element.
- * @return a daeSmartRef to the comments element.
- */
- const domCommentsRef getComments() const { return elemComments; }
- /**
- * Gets the copyright element.
- * @return a daeSmartRef to the copyright element.
- */
- const domCopyrightRef getCopyright() const { return elemCopyright; }
- /**
- * Gets the source_data element.
- * @return a daeSmartRef to the source_data element.
- */
- const domSource_dataRef getSource_data() const { return elemSource_data; }
- protected:
- /**
- * Constructor
- */
- domContributor(DAE& dae) : daeElement(dae), elemAuthor(), elemAuthoring_tool(), elemComments(), elemCopyright(), elemSource_data() {}
- /**
- * Destructor
- */
- virtual ~domContributor() {}
- /**
- * Overloaded assignment operator
- */
- virtual domContributor &operator=( const domContributor &cpy ) { (void)cpy; return *this; }
- public: // STATIC METHODS
- /**
- * Creates an instance of this class and returns a daeElementRef referencing it.
- * @return a daeElementRef referencing an instance of this object.
- */
- static DLLSPEC daeElementRef create(DAE& dae);
- /**
- * Creates a daeMetaElement object that describes this element in the meta object reflection framework.
- * If a daeMetaElement already exists it will return that instead of creating a new one.
- * @return A daeMetaElement describing this COLLADA element.
- */
- static DLLSPEC daeMetaElement* registerElement(DAE& dae);
- };
- class domCreated;
- typedef daeSmartRef<domCreated> domCreatedRef;
- typedef daeTArray<domCreatedRef> domCreated_Array;
- /**
- * The created element contains the date and time that the parent element
- * was created and is represented in an ISO 8601 format. The created element
- * may appear zero or one time.
- */
- class domCreated : public daeElement
- {
- public:
- virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::CREATED; }
- static daeInt ID() { return 671; }
- virtual daeInt typeID() const { return ID(); }
- protected: // Value
- /**
- * The xsDateTime value of the text data of this element.
- */
- xsDateTime _value;
- public: //Accessors and Mutators
- /**
- * Gets the value of this element.
- * @return Returns a xsDateTime of the value.
- */
- xsDateTime getValue() const { return _value; }
- /**
- * Sets the _value of this element.
- * @param val The new value for this element.
- */
- void setValue( xsDateTime val ) { *(daeStringRef*)&_value = val; }
- protected:
- /**
- * Constructor
- */
- domCreated(DAE& dae) : daeElement(dae), _value() {}
- /**
- * Destructor
- */
- virtual ~domCreated() {}
- /**
- * Overloaded assignment operator
- */
- virtual domCreated &operator=( const domCreated &cpy ) { (void)cpy; return *this; }
- public: // STATIC METHODS
- /**
- * Creates an instance of this class and returns a daeElementRef referencing it.
- * @return a daeElementRef referencing an instance of this object.
- */
- static DLLSPEC daeElementRef create(DAE& dae);
- /**
- * Creates a daeMetaElement object that describes this element in the meta object reflection framework.
- * If a daeMetaElement already exists it will return that instead of creating a new one.
- * @return A daeMetaElement describing this COLLADA element.
- */
- static DLLSPEC daeMetaElement* registerElement(DAE& dae);
- };
- class domKeywords;
- typedef daeSmartRef<domKeywords> domKeywordsRef;
- typedef daeTArray<domKeywordsRef> domKeywords_Array;
- /**
- * The keywords element contains a list of words used as search criteria for
- * the parent element. The keywords element may appear zero or more times.
- */
- class domKeywords : public daeElement
- {
- public:
- virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::KEYWORDS; }
- static daeInt ID() { return 672; }
- virtual daeInt typeID() const { return ID(); }
- protected: // Value
- /**
- * The xsString value of the text data of this element.
- */
- xsString _value;
- public: //Accessors and Mutators
- /**
- * Gets the value of this element.
- * @return Returns a xsString of the value.
- */
- xsString getValue() const { return _value; }
- /**
- * Sets the _value of this element.
- * @param val The new value for this element.
- */
- void setValue( xsString val ) { *(daeStringRef*)&_value = val; }
- protected:
- /**
- * Constructor
- */
- domKeywords(DAE& dae) : daeElement(dae), _value() {}
- /**
- * Destructor
- */
- virtual ~domKeywords() {}
- /**
- * Overloaded assignment operator
- */
- virtual domKeywords &operator=( const domKeywords &cpy ) { (void)cpy; return *this; }
- public: // STATIC METHODS
- /**
- * Creates an instance of this class and returns a daeElementRef referencing it.
- * @return a daeElementRef referencing an instance of this object.
- */
- static DLLSPEC daeElementRef create(DAE& dae);
- /**
- * Creates a daeMetaElement object that describes this element in the meta object reflection framework.
- * If a daeMetaElement already exists it will return that instead of creating a new one.
- * @return A daeMetaElement describing this COLLADA element.
- */
- static DLLSPEC daeMetaElement* registerElement(DAE& dae);
- };
- class domModified;
- typedef daeSmartRef<domModified> domModifiedRef;
- typedef daeTArray<domModifiedRef> domModified_Array;
- /**
- * The modified element contains the date and time that the parent element
- * was last modified and represented in an ISO 8601 format. The modified
- * element may appear zero or one time.
- */
- class domModified : public daeElement
- {
- public:
- virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::MODIFIED; }
- static daeInt ID() { return 673; }
- virtual daeInt typeID() const { return ID(); }
- protected: // Value
- /**
- * The xsDateTime value of the text data of this element.
- */
- xsDateTime _value;
- public: //Accessors and Mutators
- /**
- * Gets the value of this element.
- * @return Returns a xsDateTime of the value.
- */
- xsDateTime getValue() const { return _value; }
- /**
- * Sets the _value of this element.
- * @param val The new value for this element.
- */
- void setValue( xsDateTime val ) { *(daeStringRef*)&_value = val; }
- protected:
- /**
- * Constructor
- */
- domModified(DAE& dae) : daeElement(dae), _value() {}
- /**
- * Destructor
- */
- virtual ~domModified() {}
- /**
- * Overloaded assignment operator
- */
- virtual domModified &operator=( const domModified &cpy ) { (void)cpy; return *this; }
- public: // STATIC METHODS
- /**
- * Creates an instance of this class and returns a daeElementRef referencing it.
- * @return a daeElementRef referencing an instance of this object.
- */
- static DLLSPEC daeElementRef create(DAE& dae);
- /**
- * Creates a daeMetaElement object that describes this element in the meta object reflection framework.
- * If a daeMetaElement already exists it will return that instead of creating a new one.
- * @return A daeMetaElement describing this COLLADA element.
- */
- static DLLSPEC daeMetaElement* registerElement(DAE& dae);
- };
- class domRevision;
- typedef daeSmartRef<domRevision> domRevisionRef;
- typedef daeTArray<domRevisionRef> domRevision_Array;
- /**
- * The revision element contains the revision information for the parent element.
- * The revision element may appear zero or one time.
- */
- class domRevision : public daeElement
- {
- public:
- virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::REVISION; }
- static daeInt ID() { return 674; }
- virtual daeInt typeID() const { return ID(); }
- protected: // Value
- /**
- * The xsString value of the text data of this element.
- */
- xsString _value;
- public: //Accessors and Mutators
- /**
- * Gets the value of this element.
- * @return Returns a xsString of the value.
- */
- xsString getValue() const { return _value; }
- /**
- * Sets the _value of this element.
- * @param val The new value for this element.
- */
- void setValue( xsString val ) { *(daeStringRef*)&_value = val; }
- protected:
- /**
- * Constructor
- */
- domRevision(DAE& dae) : daeElement(dae), _value() {}
- /**
- * Destructor
- */
- virtual ~domRevision() {}
- /**
- * Overloaded assignment operator
- */
- virtual domRevision &operator=( const domRevision &cpy ) { (void)cpy; return *this; }
- public: // STATIC METHODS
- /**
- * Creates an instance of this class and returns a daeElementRef referencing it.
- * @return a daeElementRef referencing an instance of this object.
- */
- static DLLSPEC daeElementRef create(DAE& dae);
- /**
- * Creates a daeMetaElement object that describes this element in the meta object reflection framework.
- * If a daeMetaElement already exists it will return that instead of creating a new one.
- * @return A daeMetaElement describing this COLLADA element.
- */
- static DLLSPEC daeMetaElement* registerElement(DAE& dae);
- };
- class domSubject;
- typedef daeSmartRef<domSubject> domSubjectRef;
- typedef daeTArray<domSubjectRef> domSubject_Array;
- /**
- * The subject element contains a description of the topical subject of the
- * parent element. The subject element may appear zero or one time.
- */
- class domSubject : public daeElement
- {
- public:
- virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::SUBJECT; }
- static daeInt ID() { return 675; }
- virtual daeInt typeID() const { return ID(); }
- protected: // Value
- /**
- * The xsString value of the text data of this element.
- */
- xsString _value;
- public: //Accessors and Mutators
- /**
- * Gets the value of this element.
- * @return Returns a xsString of the value.
- */
- xsString getValue() const { return _value; }
- /**
- * Sets the _value of this element.
- * @param val The new value for this element.
- */
- void setValue( xsString val ) { *(daeStringRef*)&_value = val; }
- protected:
- /**
- * Constructor
- */
- domSubject(DAE& dae) : daeElement(dae), _value() {}
- /**
- * Destructor
- */
- virtual ~domSubject() {}
- /**
- * Overloaded assignment operator
- */
- virtual domSubject &operator=( const domSubject &cpy ) { (void)cpy; return *this; }
- public: // STATIC METHODS
- /**
- * Creates an instance of this class and returns a daeElementRef referencing it.
- * @return a daeElementRef referencing an instance of this object.
- */
- static DLLSPEC daeElementRef create(DAE& dae);
- /**
- * Creates a daeMetaElement object that describes this element in the meta object reflection framework.
- * If a daeMetaElement already exists it will return that instead of creating a new one.
- * @return A daeMetaElement describing this COLLADA element.
- */
- static DLLSPEC daeMetaElement* registerElement(DAE& dae);
- };
- class domTitle;
- typedef daeSmartRef<domTitle> domTitleRef;
- typedef daeTArray<domTitleRef> domTitle_Array;
- /**
- * The title element contains the title information for the parent element.
- * The title element may appear zero or one time.
- */
- class domTitle : public daeElement
- {
- public:
- virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::TITLE; }
- static daeInt ID() { return 676; }
- virtual daeInt typeID() const { return ID(); }
- protected: // Value
- /**
- * The xsString value of the text data of this element.
- */
- xsString _value;
- public: //Accessors and Mutators
- /**
- * Gets the value of this element.
- * @return Returns a xsString of the value.
- */
- xsString getValue() const { return _value; }
- /**
- * Sets the _value of this element.
- * @param val The new value for this element.
- */
- void setValue( xsString val ) { *(daeStringRef*)&_value = val; }
- protected:
- /**
- * Constructor
- */
- domTitle(DAE& dae) : daeElement(dae), _value() {}
- /**
- * Destructor
- */
- virtual ~domTitle() {}
- /**
- * Overloaded assignment operator
- */
- virtual domTitle &operator=( const domTitle &cpy ) { (void)cpy; return *this; }
- public: // STATIC METHODS
- /**
- * Creates an instance of this class and returns a daeElementRef referencing it.
- * @return a daeElementRef referencing an instance of this object.
- */
- static DLLSPEC daeElementRef create(DAE& dae);
- /**
- * Creates a daeMetaElement object that describes this element in the meta object reflection framework.
- * If a daeMetaElement already exists it will return that instead of creating a new one.
- * @return A daeMetaElement describing this COLLADA element.
- */
- static DLLSPEC daeMetaElement* registerElement(DAE& dae);
- };
- class domUnit;
- typedef daeSmartRef<domUnit> domUnitRef;
- typedef daeTArray<domUnitRef> domUnit_Array;
- /**
- * The unit element contains descriptive information about unit of measure.
- * It has attributes for the name of the unit and the measurement with respect
- * to the meter. The unit element may appear zero or one time.
- */
- class domUnit : public daeElement
- {
- public:
- virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::UNIT; }
- static daeInt ID() { return 677; }
- virtual daeInt typeID() const { return ID(); }
- protected: // Attributes
- /**
- * The meter attribute specifies the measurement with respect to the meter.
- * The default value for the meter attribute is “1.0”.
- */
- domFloat attrMeter;
- /**
- * The name attribute specifies the name of the unit. The default value for
- * the name attribute is “meter”.
- */
- xsNMTOKEN attrName;
- public: //Accessors and Mutators
- /**
- * Gets the meter attribute.
- * @return Returns a domFloat of the meter attribute.
- */
- domFloat getMeter() const { return attrMeter; }
- /**
- * Sets the meter attribute.
- * @param atMeter The new value for the meter attribute.
- */
- void setMeter( domFloat atMeter ) { attrMeter = atMeter; _validAttributeArray[0] = true; }
- /**
- * Gets the name attribute.
- * @return Returns a xsNMTOKEN of the name attribute.
- */
- xsNMTOKEN getName() const { return attrName; }
- /**
- * Sets the name attribute.
- * @param atName The new value for the name attribute.
- */
- void setName( xsNMTOKEN atName ) { *(daeStringRef*)&attrName = atName; _validAttributeArray[1] = true; }
- protected:
- /**
- * Constructor
- */
- domUnit(DAE& dae) : daeElement(dae), attrMeter(), attrName() {}
- /**
- * Destructor
- */
- virtual ~domUnit() {}
- /**
- * Overloaded assignment operator
- */
- virtual domUnit &operator=( const domUnit &cpy ) { (void)cpy; return *this; }
- public: // STATIC METHODS
- /**
- * Creates an instance of this class and returns a daeElementRef referencing it.
- * @return a daeElementRef referencing an instance of this object.
- */
- static DLLSPEC daeElementRef create(DAE& dae);
- /**
- * Creates a daeMetaElement object that describes this element in the meta object reflection framework.
- * If a daeMetaElement already exists it will return that instead of creating a new one.
- * @return A daeMetaElement describing this COLLADA element.
- */
- static DLLSPEC daeMetaElement* registerElement(DAE& dae);
- };
- class domUp_axis;
- typedef daeSmartRef<domUp_axis> domUp_axisRef;
- typedef daeTArray<domUp_axisRef> domUp_axis_Array;
- /**
- * The up_axis element contains descriptive information about coordinate system
- * of the geometric data. All coordinates are right-handed by definition.
- * This element specifies which axis is considered up. The default is the
- * Y-axis. The up_axis element may appear zero or one time.
- */
- class domUp_axis : public daeElement
- {
- public:
- virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::UP_AXIS; }
- static daeInt ID() { return 678; }
- virtual daeInt typeID() const { return ID(); }
- protected: // Value
- /**
- * The domUpAxisType value of the text data of this element.
- */
- domUpAxisType _value;
- public: //Accessors and Mutators
- /**
- * Gets the value of this element.
- * @return a domUpAxisType of the value.
- */
- domUpAxisType getValue() const { return _value; }
- /**
- * Sets the _value of this element.
- * @param val The new value for this element.
- */
- void setValue( domUpAxisType val ) { _value = val; }
- protected:
- /**
- * Constructor
- */
- domUp_axis(DAE& dae) : daeElement(dae), _value() {}
- /**
- * Destructor
- */
- virtual ~domUp_axis() {}
- /**
- * Overloaded assignment operator
- */
- virtual domUp_axis &operator=( const domUp_axis &cpy ) { (void)cpy; return *this; }
- public: // STATIC METHODS
- /**
- * Creates an instance of this class and returns a daeElementRef referencing it.
- * @return a daeElementRef referencing an instance of this object.
- */
- static DLLSPEC daeElementRef create(DAE& dae);
- /**
- * Creates a daeMetaElement object that describes this element in the meta object reflection framework.
- * If a daeMetaElement already exists it will return that instead of creating a new one.
- * @return A daeMetaElement describing this COLLADA element.
- */
- static DLLSPEC daeMetaElement* registerElement(DAE& dae);
- };
- protected: // Elements
- /**
- * The contributor element defines authoring information for asset management
- * @see domContributor
- */
- domContributor_Array elemContributor_array;
- /**
- * The created element contains the date and time that the parent element
- * was created and is represented in an ISO 8601 format. The created element
- * may appear zero or one time. @see domCreated
- */
- domCreatedRef elemCreated;
- /**
- * The keywords element contains a list of words used as search criteria for
- * the parent element. The keywords element may appear zero or more times.
- * @see domKeywords
- */
- domKeywordsRef elemKeywords;
- /**
- * The modified element contains the date and time that the parent element
- * was last modified and represented in an ISO 8601 format. The modified
- * element may appear zero or one time. @see domModified
- */
- domModifiedRef elemModified;
- /**
- * The revision element contains the revision information for the parent element.
- * The revision element may appear zero or one time. @see domRevision
- */
- domRevisionRef elemRevision;
- /**
- * The subject element contains a description of the topical subject of the
- * parent element. The subject element may appear zero or one time. @see
- * domSubject
- */
- domSubjectRef elemSubject;
- /**
- * The title element contains the title information for the parent element.
- * The title element may appear zero or one time. @see domTitle
- */
- domTitleRef elemTitle;
- /**
- * The unit element contains descriptive information about unit of measure.
- * It has attributes for the name of the unit and the measurement with respect
- * to the meter. The unit element may appear zero or one time. @see domUnit
- */
- domUnitRef elemUnit;
- /**
- * The up_axis element contains descriptive information about coordinate system
- * of the geometric data. All coordinates are right-handed by definition.
- * This element specifies which axis is considered up. The default is the
- * Y-axis. The up_axis element may appear zero or one time. @see domUp_axis
- */
- domUp_axisRef elemUp_axis;
- public: //Accessors and Mutators
- /**
- * Gets the contributor element array.
- * @return Returns a reference to the array of contributor elements.
- */
- domContributor_Array &getContributor_array() { return elemContributor_array; }
- /**
- * Gets the contributor element array.
- * @return Returns a constant reference to the array of contributor elements.
- */
- const domContributor_Array &getContributor_array() const { return elemContributor_array; }
- /**
- * Gets the created element.
- * @return a daeSmartRef to the created element.
- */
- const domCreatedRef getCreated() const { return elemCreated; }
- /**
- * Gets the keywords element.
- * @return a daeSmartRef to the keywords element.
- */
- const domKeywordsRef getKeywords() const { return elemKeywords; }
- /**
- * Gets the modified element.
- * @return a daeSmartRef to the modified element.
- */
- const domModifiedRef getModified() const { return elemModified; }
- /**
- * Gets the revision element.
- * @return a daeSmartRef to the revision element.
- */
- const domRevisionRef getRevision() const { return elemRevision; }
- /**
- * Gets the subject element.
- * @return a daeSmartRef to the subject element.
- */
- const domSubjectRef getSubject() const { return elemSubject; }
- /**
- * Gets the title element.
- * @return a daeSmartRef to the title element.
- */
- const domTitleRef getTitle() const { return elemTitle; }
- /**
- * Gets the unit element.
- * @return a daeSmartRef to the unit element.
- */
- const domUnitRef getUnit() const { return elemUnit; }
- /**
- * Gets the up_axis element.
- * @return a daeSmartRef to the up_axis element.
- */
- const domUp_axisRef getUp_axis() const { return elemUp_axis; }
- protected:
- /**
- * Constructor
- */
- domAsset(DAE& dae) : daeElement(dae), elemContributor_array(), elemCreated(), elemKeywords(), elemModified(), elemRevision(), elemSubject(), elemTitle(), elemUnit(), elemUp_axis() {}
- /**
- * Destructor
- */
- virtual ~domAsset() {}
- /**
- * Overloaded assignment operator
- */
- virtual domAsset &operator=( const domAsset &cpy ) { (void)cpy; return *this; }
- public: // STATIC METHODS
- /**
- * Creates an instance of this class and returns a daeElementRef referencing it.
- * @return a daeElementRef referencing an instance of this object.
- */
- static DLLSPEC daeElementRef create(DAE& dae);
- /**
- * Creates a daeMetaElement object that describes this element in the meta object reflection framework.
- * If a daeMetaElement already exists it will return that instead of creating a new one.
- * @return A daeMetaElement describing this COLLADA element.
- */
- static DLLSPEC daeMetaElement* registerElement(DAE& dae);
- };
- #endif
|