domAsset.h 33 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106
  1. /*
  2. * Copyright 2006 Sony Computer Entertainment Inc.
  3. *
  4. * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this
  5. * file except in compliance with the License. You may obtain a copy of the License at:
  6. * http://research.scea.com/scea_shared_source_license.html
  7. *
  8. * Unless required by applicable law or agreed to in writing, software distributed under the License
  9. * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
  10. * implied. See the License for the specific language governing permissions and limitations under the
  11. * License.
  12. */
  13. #ifndef __domAsset_h__
  14. #define __domAsset_h__
  15. #include <dae/daeDocument.h>
  16. #include <dom/domTypes.h>
  17. #include <dom/domElements.h>
  18. class DAE;
  19. /**
  20. * The asset element defines asset management information regarding its parent
  21. * element.
  22. */
  23. class domAsset : public daeElement
  24. {
  25. public:
  26. virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::ASSET; }
  27. static daeInt ID() { return 664; }
  28. virtual daeInt typeID() const { return ID(); }
  29. public:
  30. class domContributor;
  31. typedef daeSmartRef<domContributor> domContributorRef;
  32. typedef daeTArray<domContributorRef> domContributor_Array;
  33. /**
  34. * The contributor element defines authoring information for asset management
  35. */
  36. class domContributor : public daeElement
  37. {
  38. public:
  39. virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::CONTRIBUTOR; }
  40. static daeInt ID() { return 665; }
  41. virtual daeInt typeID() const { return ID(); }
  42. public:
  43. class domAuthor;
  44. typedef daeSmartRef<domAuthor> domAuthorRef;
  45. typedef daeTArray<domAuthorRef> domAuthor_Array;
  46. /**
  47. * The author element contains a string with the author's name. There may
  48. * be only one author element.
  49. */
  50. class domAuthor : public daeElement
  51. {
  52. public:
  53. virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::AUTHOR; }
  54. static daeInt ID() { return 666; }
  55. virtual daeInt typeID() const { return ID(); }
  56. protected: // Value
  57. /**
  58. * The xsString value of the text data of this element.
  59. */
  60. xsString _value;
  61. public: //Accessors and Mutators
  62. /**
  63. * Gets the value of this element.
  64. * @return Returns a xsString of the value.
  65. */
  66. xsString getValue() const { return _value; }
  67. /**
  68. * Sets the _value of this element.
  69. * @param val The new value for this element.
  70. */
  71. void setValue( xsString val ) { *(daeStringRef*)&_value = val; }
  72. protected:
  73. /**
  74. * Constructor
  75. */
  76. domAuthor(DAE& dae) : daeElement(dae), _value() {}
  77. /**
  78. * Destructor
  79. */
  80. virtual ~domAuthor() {}
  81. /**
  82. * Overloaded assignment operator
  83. */
  84. virtual domAuthor &operator=( const domAuthor &cpy ) { (void)cpy; return *this; }
  85. public: // STATIC METHODS
  86. /**
  87. * Creates an instance of this class and returns a daeElementRef referencing it.
  88. * @return a daeElementRef referencing an instance of this object.
  89. */
  90. static DLLSPEC daeElementRef create(DAE& dae);
  91. /**
  92. * Creates a daeMetaElement object that describes this element in the meta object reflection framework.
  93. * If a daeMetaElement already exists it will return that instead of creating a new one.
  94. * @return A daeMetaElement describing this COLLADA element.
  95. */
  96. static DLLSPEC daeMetaElement* registerElement(DAE& dae);
  97. };
  98. class domAuthoring_tool;
  99. typedef daeSmartRef<domAuthoring_tool> domAuthoring_toolRef;
  100. typedef daeTArray<domAuthoring_toolRef> domAuthoring_tool_Array;
  101. /**
  102. * The authoring_tool element contains a string with the authoring tool's
  103. * name. There may be only one authoring_tool element.
  104. */
  105. class domAuthoring_tool : public daeElement
  106. {
  107. public:
  108. virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::AUTHORING_TOOL; }
  109. static daeInt ID() { return 667; }
  110. virtual daeInt typeID() const { return ID(); }
  111. protected: // Value
  112. /**
  113. * The xsString value of the text data of this element.
  114. */
  115. xsString _value;
  116. public: //Accessors and Mutators
  117. /**
  118. * Gets the value of this element.
  119. * @return Returns a xsString of the value.
  120. */
  121. xsString getValue() const { return _value; }
  122. /**
  123. * Sets the _value of this element.
  124. * @param val The new value for this element.
  125. */
  126. void setValue( xsString val ) { *(daeStringRef*)&_value = val; }
  127. protected:
  128. /**
  129. * Constructor
  130. */
  131. domAuthoring_tool(DAE& dae) : daeElement(dae), _value() {}
  132. /**
  133. * Destructor
  134. */
  135. virtual ~domAuthoring_tool() {}
  136. /**
  137. * Overloaded assignment operator
  138. */
  139. virtual domAuthoring_tool &operator=( const domAuthoring_tool &cpy ) { (void)cpy; return *this; }
  140. public: // STATIC METHODS
  141. /**
  142. * Creates an instance of this class and returns a daeElementRef referencing it.
  143. * @return a daeElementRef referencing an instance of this object.
  144. */
  145. static DLLSPEC daeElementRef create(DAE& dae);
  146. /**
  147. * Creates a daeMetaElement object that describes this element in the meta object reflection framework.
  148. * If a daeMetaElement already exists it will return that instead of creating a new one.
  149. * @return A daeMetaElement describing this COLLADA element.
  150. */
  151. static DLLSPEC daeMetaElement* registerElement(DAE& dae);
  152. };
  153. class domComments;
  154. typedef daeSmartRef<domComments> domCommentsRef;
  155. typedef daeTArray<domCommentsRef> domComments_Array;
  156. /**
  157. * The comments element contains a string with comments from this contributor.
  158. * There may be only one comments element.
  159. */
  160. class domComments : public daeElement
  161. {
  162. public:
  163. virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::COMMENTS; }
  164. static daeInt ID() { return 668; }
  165. virtual daeInt typeID() const { return ID(); }
  166. protected: // Value
  167. /**
  168. * The xsString value of the text data of this element.
  169. */
  170. xsString _value;
  171. public: //Accessors and Mutators
  172. /**
  173. * Gets the value of this element.
  174. * @return Returns a xsString of the value.
  175. */
  176. xsString getValue() const { return _value; }
  177. /**
  178. * Sets the _value of this element.
  179. * @param val The new value for this element.
  180. */
  181. void setValue( xsString val ) { *(daeStringRef*)&_value = val; }
  182. protected:
  183. /**
  184. * Constructor
  185. */
  186. domComments(DAE& dae) : daeElement(dae), _value() {}
  187. /**
  188. * Destructor
  189. */
  190. virtual ~domComments() {}
  191. /**
  192. * Overloaded assignment operator
  193. */
  194. virtual domComments &operator=( const domComments &cpy ) { (void)cpy; return *this; }
  195. public: // STATIC METHODS
  196. /**
  197. * Creates an instance of this class and returns a daeElementRef referencing it.
  198. * @return a daeElementRef referencing an instance of this object.
  199. */
  200. static DLLSPEC daeElementRef create(DAE& dae);
  201. /**
  202. * Creates a daeMetaElement object that describes this element in the meta object reflection framework.
  203. * If a daeMetaElement already exists it will return that instead of creating a new one.
  204. * @return A daeMetaElement describing this COLLADA element.
  205. */
  206. static DLLSPEC daeMetaElement* registerElement(DAE& dae);
  207. };
  208. class domCopyright;
  209. typedef daeSmartRef<domCopyright> domCopyrightRef;
  210. typedef daeTArray<domCopyrightRef> domCopyright_Array;
  211. /**
  212. * The copyright element contains a string with copyright information. There
  213. * may be only one copyright element.
  214. */
  215. class domCopyright : public daeElement
  216. {
  217. public:
  218. virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::COPYRIGHT; }
  219. static daeInt ID() { return 669; }
  220. virtual daeInt typeID() const { return ID(); }
  221. protected: // Value
  222. /**
  223. * The xsString value of the text data of this element.
  224. */
  225. xsString _value;
  226. public: //Accessors and Mutators
  227. /**
  228. * Gets the value of this element.
  229. * @return Returns a xsString of the value.
  230. */
  231. xsString getValue() const { return _value; }
  232. /**
  233. * Sets the _value of this element.
  234. * @param val The new value for this element.
  235. */
  236. void setValue( xsString val ) { *(daeStringRef*)&_value = val; }
  237. protected:
  238. /**
  239. * Constructor
  240. */
  241. domCopyright(DAE& dae) : daeElement(dae), _value() {}
  242. /**
  243. * Destructor
  244. */
  245. virtual ~domCopyright() {}
  246. /**
  247. * Overloaded assignment operator
  248. */
  249. virtual domCopyright &operator=( const domCopyright &cpy ) { (void)cpy; return *this; }
  250. public: // STATIC METHODS
  251. /**
  252. * Creates an instance of this class and returns a daeElementRef referencing it.
  253. * @return a daeElementRef referencing an instance of this object.
  254. */
  255. static DLLSPEC daeElementRef create(DAE& dae);
  256. /**
  257. * Creates a daeMetaElement object that describes this element in the meta object reflection framework.
  258. * If a daeMetaElement already exists it will return that instead of creating a new one.
  259. * @return A daeMetaElement describing this COLLADA element.
  260. */
  261. static DLLSPEC daeMetaElement* registerElement(DAE& dae);
  262. };
  263. class domSource_data;
  264. typedef daeSmartRef<domSource_data> domSource_dataRef;
  265. typedef daeTArray<domSource_dataRef> domSource_data_Array;
  266. /**
  267. * The source_data element contains a URI reference to the source data used
  268. * for this asset. There may be only one source_data element.
  269. */
  270. class domSource_data : public daeElement
  271. {
  272. public:
  273. virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::SOURCE_DATA; }
  274. static daeInt ID() { return 670; }
  275. virtual daeInt typeID() const { return ID(); }
  276. protected: // Value
  277. /**
  278. * The xsAnyURI value of the text data of this element.
  279. */
  280. xsAnyURI _value;
  281. public: //Accessors and Mutators
  282. /**
  283. * Gets the value of this element.
  284. * @return Returns a xsAnyURI of the value.
  285. */
  286. xsAnyURI &getValue() { return _value; }
  287. /**
  288. * Gets the value of this element.
  289. * @return Returns a constant xsAnyURI of the value.
  290. */
  291. const xsAnyURI &getValue() const { return _value; }
  292. /**
  293. * Sets the _value of this element.
  294. * @param val The new value for this element.
  295. */
  296. void setValue( const xsAnyURI &val ) { _value = val; }
  297. /**
  298. * Sets the _value of this element.
  299. * @param val The new value for this element.
  300. */
  301. void setValue( xsString val ) { _value = val; }
  302. protected:
  303. /**
  304. * Constructor
  305. */
  306. domSource_data(DAE& dae) : daeElement(dae), _value(dae, *this) {}
  307. /**
  308. * Destructor
  309. */
  310. virtual ~domSource_data() {}
  311. /**
  312. * Overloaded assignment operator
  313. */
  314. virtual domSource_data &operator=( const domSource_data &cpy ) { (void)cpy; return *this; }
  315. public: // STATIC METHODS
  316. /**
  317. * Creates an instance of this class and returns a daeElementRef referencing it.
  318. * @return a daeElementRef referencing an instance of this object.
  319. */
  320. static DLLSPEC daeElementRef create(DAE& dae);
  321. /**
  322. * Creates a daeMetaElement object that describes this element in the meta object reflection framework.
  323. * If a daeMetaElement already exists it will return that instead of creating a new one.
  324. * @return A daeMetaElement describing this COLLADA element.
  325. */
  326. static DLLSPEC daeMetaElement* registerElement(DAE& dae);
  327. };
  328. protected: // Elements
  329. /**
  330. * The author element contains a string with the author's name. There may
  331. * be only one author element. @see domAuthor
  332. */
  333. domAuthorRef elemAuthor;
  334. /**
  335. * The authoring_tool element contains a string with the authoring tool's
  336. * name. There may be only one authoring_tool element. @see domAuthoring_tool
  337. */
  338. domAuthoring_toolRef elemAuthoring_tool;
  339. /**
  340. * The comments element contains a string with comments from this contributor.
  341. * There may be only one comments element. @see domComments
  342. */
  343. domCommentsRef elemComments;
  344. /**
  345. * The copyright element contains a string with copyright information. There
  346. * may be only one copyright element. @see domCopyright
  347. */
  348. domCopyrightRef elemCopyright;
  349. /**
  350. * The source_data element contains a URI reference to the source data used
  351. * for this asset. There may be only one source_data element. @see domSource_data
  352. */
  353. domSource_dataRef elemSource_data;
  354. public: //Accessors and Mutators
  355. /**
  356. * Gets the author element.
  357. * @return a daeSmartRef to the author element.
  358. */
  359. const domAuthorRef getAuthor() const { return elemAuthor; }
  360. /**
  361. * Gets the authoring_tool element.
  362. * @return a daeSmartRef to the authoring_tool element.
  363. */
  364. const domAuthoring_toolRef getAuthoring_tool() const { return elemAuthoring_tool; }
  365. /**
  366. * Gets the comments element.
  367. * @return a daeSmartRef to the comments element.
  368. */
  369. const domCommentsRef getComments() const { return elemComments; }
  370. /**
  371. * Gets the copyright element.
  372. * @return a daeSmartRef to the copyright element.
  373. */
  374. const domCopyrightRef getCopyright() const { return elemCopyright; }
  375. /**
  376. * Gets the source_data element.
  377. * @return a daeSmartRef to the source_data element.
  378. */
  379. const domSource_dataRef getSource_data() const { return elemSource_data; }
  380. protected:
  381. /**
  382. * Constructor
  383. */
  384. domContributor(DAE& dae) : daeElement(dae), elemAuthor(), elemAuthoring_tool(), elemComments(), elemCopyright(), elemSource_data() {}
  385. /**
  386. * Destructor
  387. */
  388. virtual ~domContributor() {}
  389. /**
  390. * Overloaded assignment operator
  391. */
  392. virtual domContributor &operator=( const domContributor &cpy ) { (void)cpy; return *this; }
  393. public: // STATIC METHODS
  394. /**
  395. * Creates an instance of this class and returns a daeElementRef referencing it.
  396. * @return a daeElementRef referencing an instance of this object.
  397. */
  398. static DLLSPEC daeElementRef create(DAE& dae);
  399. /**
  400. * Creates a daeMetaElement object that describes this element in the meta object reflection framework.
  401. * If a daeMetaElement already exists it will return that instead of creating a new one.
  402. * @return A daeMetaElement describing this COLLADA element.
  403. */
  404. static DLLSPEC daeMetaElement* registerElement(DAE& dae);
  405. };
  406. class domCreated;
  407. typedef daeSmartRef<domCreated> domCreatedRef;
  408. typedef daeTArray<domCreatedRef> domCreated_Array;
  409. /**
  410. * The created element contains the date and time that the parent element
  411. * was created and is represented in an ISO 8601 format. The created element
  412. * may appear zero or one time.
  413. */
  414. class domCreated : public daeElement
  415. {
  416. public:
  417. virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::CREATED; }
  418. static daeInt ID() { return 671; }
  419. virtual daeInt typeID() const { return ID(); }
  420. protected: // Value
  421. /**
  422. * The xsDateTime value of the text data of this element.
  423. */
  424. xsDateTime _value;
  425. public: //Accessors and Mutators
  426. /**
  427. * Gets the value of this element.
  428. * @return Returns a xsDateTime of the value.
  429. */
  430. xsDateTime getValue() const { return _value; }
  431. /**
  432. * Sets the _value of this element.
  433. * @param val The new value for this element.
  434. */
  435. void setValue( xsDateTime val ) { *(daeStringRef*)&_value = val; }
  436. protected:
  437. /**
  438. * Constructor
  439. */
  440. domCreated(DAE& dae) : daeElement(dae), _value() {}
  441. /**
  442. * Destructor
  443. */
  444. virtual ~domCreated() {}
  445. /**
  446. * Overloaded assignment operator
  447. */
  448. virtual domCreated &operator=( const domCreated &cpy ) { (void)cpy; return *this; }
  449. public: // STATIC METHODS
  450. /**
  451. * Creates an instance of this class and returns a daeElementRef referencing it.
  452. * @return a daeElementRef referencing an instance of this object.
  453. */
  454. static DLLSPEC daeElementRef create(DAE& dae);
  455. /**
  456. * Creates a daeMetaElement object that describes this element in the meta object reflection framework.
  457. * If a daeMetaElement already exists it will return that instead of creating a new one.
  458. * @return A daeMetaElement describing this COLLADA element.
  459. */
  460. static DLLSPEC daeMetaElement* registerElement(DAE& dae);
  461. };
  462. class domKeywords;
  463. typedef daeSmartRef<domKeywords> domKeywordsRef;
  464. typedef daeTArray<domKeywordsRef> domKeywords_Array;
  465. /**
  466. * The keywords element contains a list of words used as search criteria for
  467. * the parent element. The keywords element may appear zero or more times.
  468. */
  469. class domKeywords : public daeElement
  470. {
  471. public:
  472. virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::KEYWORDS; }
  473. static daeInt ID() { return 672; }
  474. virtual daeInt typeID() const { return ID(); }
  475. protected: // Value
  476. /**
  477. * The xsString value of the text data of this element.
  478. */
  479. xsString _value;
  480. public: //Accessors and Mutators
  481. /**
  482. * Gets the value of this element.
  483. * @return Returns a xsString of the value.
  484. */
  485. xsString getValue() const { return _value; }
  486. /**
  487. * Sets the _value of this element.
  488. * @param val The new value for this element.
  489. */
  490. void setValue( xsString val ) { *(daeStringRef*)&_value = val; }
  491. protected:
  492. /**
  493. * Constructor
  494. */
  495. domKeywords(DAE& dae) : daeElement(dae), _value() {}
  496. /**
  497. * Destructor
  498. */
  499. virtual ~domKeywords() {}
  500. /**
  501. * Overloaded assignment operator
  502. */
  503. virtual domKeywords &operator=( const domKeywords &cpy ) { (void)cpy; return *this; }
  504. public: // STATIC METHODS
  505. /**
  506. * Creates an instance of this class and returns a daeElementRef referencing it.
  507. * @return a daeElementRef referencing an instance of this object.
  508. */
  509. static DLLSPEC daeElementRef create(DAE& dae);
  510. /**
  511. * Creates a daeMetaElement object that describes this element in the meta object reflection framework.
  512. * If a daeMetaElement already exists it will return that instead of creating a new one.
  513. * @return A daeMetaElement describing this COLLADA element.
  514. */
  515. static DLLSPEC daeMetaElement* registerElement(DAE& dae);
  516. };
  517. class domModified;
  518. typedef daeSmartRef<domModified> domModifiedRef;
  519. typedef daeTArray<domModifiedRef> domModified_Array;
  520. /**
  521. * The modified element contains the date and time that the parent element
  522. * was last modified and represented in an ISO 8601 format. The modified
  523. * element may appear zero or one time.
  524. */
  525. class domModified : public daeElement
  526. {
  527. public:
  528. virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::MODIFIED; }
  529. static daeInt ID() { return 673; }
  530. virtual daeInt typeID() const { return ID(); }
  531. protected: // Value
  532. /**
  533. * The xsDateTime value of the text data of this element.
  534. */
  535. xsDateTime _value;
  536. public: //Accessors and Mutators
  537. /**
  538. * Gets the value of this element.
  539. * @return Returns a xsDateTime of the value.
  540. */
  541. xsDateTime getValue() const { return _value; }
  542. /**
  543. * Sets the _value of this element.
  544. * @param val The new value for this element.
  545. */
  546. void setValue( xsDateTime val ) { *(daeStringRef*)&_value = val; }
  547. protected:
  548. /**
  549. * Constructor
  550. */
  551. domModified(DAE& dae) : daeElement(dae), _value() {}
  552. /**
  553. * Destructor
  554. */
  555. virtual ~domModified() {}
  556. /**
  557. * Overloaded assignment operator
  558. */
  559. virtual domModified &operator=( const domModified &cpy ) { (void)cpy; return *this; }
  560. public: // STATIC METHODS
  561. /**
  562. * Creates an instance of this class and returns a daeElementRef referencing it.
  563. * @return a daeElementRef referencing an instance of this object.
  564. */
  565. static DLLSPEC daeElementRef create(DAE& dae);
  566. /**
  567. * Creates a daeMetaElement object that describes this element in the meta object reflection framework.
  568. * If a daeMetaElement already exists it will return that instead of creating a new one.
  569. * @return A daeMetaElement describing this COLLADA element.
  570. */
  571. static DLLSPEC daeMetaElement* registerElement(DAE& dae);
  572. };
  573. class domRevision;
  574. typedef daeSmartRef<domRevision> domRevisionRef;
  575. typedef daeTArray<domRevisionRef> domRevision_Array;
  576. /**
  577. * The revision element contains the revision information for the parent element.
  578. * The revision element may appear zero or one time.
  579. */
  580. class domRevision : public daeElement
  581. {
  582. public:
  583. virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::REVISION; }
  584. static daeInt ID() { return 674; }
  585. virtual daeInt typeID() const { return ID(); }
  586. protected: // Value
  587. /**
  588. * The xsString value of the text data of this element.
  589. */
  590. xsString _value;
  591. public: //Accessors and Mutators
  592. /**
  593. * Gets the value of this element.
  594. * @return Returns a xsString of the value.
  595. */
  596. xsString getValue() const { return _value; }
  597. /**
  598. * Sets the _value of this element.
  599. * @param val The new value for this element.
  600. */
  601. void setValue( xsString val ) { *(daeStringRef*)&_value = val; }
  602. protected:
  603. /**
  604. * Constructor
  605. */
  606. domRevision(DAE& dae) : daeElement(dae), _value() {}
  607. /**
  608. * Destructor
  609. */
  610. virtual ~domRevision() {}
  611. /**
  612. * Overloaded assignment operator
  613. */
  614. virtual domRevision &operator=( const domRevision &cpy ) { (void)cpy; return *this; }
  615. public: // STATIC METHODS
  616. /**
  617. * Creates an instance of this class and returns a daeElementRef referencing it.
  618. * @return a daeElementRef referencing an instance of this object.
  619. */
  620. static DLLSPEC daeElementRef create(DAE& dae);
  621. /**
  622. * Creates a daeMetaElement object that describes this element in the meta object reflection framework.
  623. * If a daeMetaElement already exists it will return that instead of creating a new one.
  624. * @return A daeMetaElement describing this COLLADA element.
  625. */
  626. static DLLSPEC daeMetaElement* registerElement(DAE& dae);
  627. };
  628. class domSubject;
  629. typedef daeSmartRef<domSubject> domSubjectRef;
  630. typedef daeTArray<domSubjectRef> domSubject_Array;
  631. /**
  632. * The subject element contains a description of the topical subject of the
  633. * parent element. The subject element may appear zero or one time.
  634. */
  635. class domSubject : public daeElement
  636. {
  637. public:
  638. virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::SUBJECT; }
  639. static daeInt ID() { return 675; }
  640. virtual daeInt typeID() const { return ID(); }
  641. protected: // Value
  642. /**
  643. * The xsString value of the text data of this element.
  644. */
  645. xsString _value;
  646. public: //Accessors and Mutators
  647. /**
  648. * Gets the value of this element.
  649. * @return Returns a xsString of the value.
  650. */
  651. xsString getValue() const { return _value; }
  652. /**
  653. * Sets the _value of this element.
  654. * @param val The new value for this element.
  655. */
  656. void setValue( xsString val ) { *(daeStringRef*)&_value = val; }
  657. protected:
  658. /**
  659. * Constructor
  660. */
  661. domSubject(DAE& dae) : daeElement(dae), _value() {}
  662. /**
  663. * Destructor
  664. */
  665. virtual ~domSubject() {}
  666. /**
  667. * Overloaded assignment operator
  668. */
  669. virtual domSubject &operator=( const domSubject &cpy ) { (void)cpy; return *this; }
  670. public: // STATIC METHODS
  671. /**
  672. * Creates an instance of this class and returns a daeElementRef referencing it.
  673. * @return a daeElementRef referencing an instance of this object.
  674. */
  675. static DLLSPEC daeElementRef create(DAE& dae);
  676. /**
  677. * Creates a daeMetaElement object that describes this element in the meta object reflection framework.
  678. * If a daeMetaElement already exists it will return that instead of creating a new one.
  679. * @return A daeMetaElement describing this COLLADA element.
  680. */
  681. static DLLSPEC daeMetaElement* registerElement(DAE& dae);
  682. };
  683. class domTitle;
  684. typedef daeSmartRef<domTitle> domTitleRef;
  685. typedef daeTArray<domTitleRef> domTitle_Array;
  686. /**
  687. * The title element contains the title information for the parent element.
  688. * The title element may appear zero or one time.
  689. */
  690. class domTitle : public daeElement
  691. {
  692. public:
  693. virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::TITLE; }
  694. static daeInt ID() { return 676; }
  695. virtual daeInt typeID() const { return ID(); }
  696. protected: // Value
  697. /**
  698. * The xsString value of the text data of this element.
  699. */
  700. xsString _value;
  701. public: //Accessors and Mutators
  702. /**
  703. * Gets the value of this element.
  704. * @return Returns a xsString of the value.
  705. */
  706. xsString getValue() const { return _value; }
  707. /**
  708. * Sets the _value of this element.
  709. * @param val The new value for this element.
  710. */
  711. void setValue( xsString val ) { *(daeStringRef*)&_value = val; }
  712. protected:
  713. /**
  714. * Constructor
  715. */
  716. domTitle(DAE& dae) : daeElement(dae), _value() {}
  717. /**
  718. * Destructor
  719. */
  720. virtual ~domTitle() {}
  721. /**
  722. * Overloaded assignment operator
  723. */
  724. virtual domTitle &operator=( const domTitle &cpy ) { (void)cpy; return *this; }
  725. public: // STATIC METHODS
  726. /**
  727. * Creates an instance of this class and returns a daeElementRef referencing it.
  728. * @return a daeElementRef referencing an instance of this object.
  729. */
  730. static DLLSPEC daeElementRef create(DAE& dae);
  731. /**
  732. * Creates a daeMetaElement object that describes this element in the meta object reflection framework.
  733. * If a daeMetaElement already exists it will return that instead of creating a new one.
  734. * @return A daeMetaElement describing this COLLADA element.
  735. */
  736. static DLLSPEC daeMetaElement* registerElement(DAE& dae);
  737. };
  738. class domUnit;
  739. typedef daeSmartRef<domUnit> domUnitRef;
  740. typedef daeTArray<domUnitRef> domUnit_Array;
  741. /**
  742. * The unit element contains descriptive information about unit of measure.
  743. * It has attributes for the name of the unit and the measurement with respect
  744. * to the meter. The unit element may appear zero or one time.
  745. */
  746. class domUnit : public daeElement
  747. {
  748. public:
  749. virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::UNIT; }
  750. static daeInt ID() { return 677; }
  751. virtual daeInt typeID() const { return ID(); }
  752. protected: // Attributes
  753. /**
  754. * The meter attribute specifies the measurement with respect to the meter.
  755. * The default value for the meter attribute is “1.0”.
  756. */
  757. domFloat attrMeter;
  758. /**
  759. * The name attribute specifies the name of the unit. The default value for
  760. * the name attribute is “meter”.
  761. */
  762. xsNMTOKEN attrName;
  763. public: //Accessors and Mutators
  764. /**
  765. * Gets the meter attribute.
  766. * @return Returns a domFloat of the meter attribute.
  767. */
  768. domFloat getMeter() const { return attrMeter; }
  769. /**
  770. * Sets the meter attribute.
  771. * @param atMeter The new value for the meter attribute.
  772. */
  773. void setMeter( domFloat atMeter ) { attrMeter = atMeter; _validAttributeArray[0] = true; }
  774. /**
  775. * Gets the name attribute.
  776. * @return Returns a xsNMTOKEN of the name attribute.
  777. */
  778. xsNMTOKEN getName() const { return attrName; }
  779. /**
  780. * Sets the name attribute.
  781. * @param atName The new value for the name attribute.
  782. */
  783. void setName( xsNMTOKEN atName ) { *(daeStringRef*)&attrName = atName; _validAttributeArray[1] = true; }
  784. protected:
  785. /**
  786. * Constructor
  787. */
  788. domUnit(DAE& dae) : daeElement(dae), attrMeter(), attrName() {}
  789. /**
  790. * Destructor
  791. */
  792. virtual ~domUnit() {}
  793. /**
  794. * Overloaded assignment operator
  795. */
  796. virtual domUnit &operator=( const domUnit &cpy ) { (void)cpy; return *this; }
  797. public: // STATIC METHODS
  798. /**
  799. * Creates an instance of this class and returns a daeElementRef referencing it.
  800. * @return a daeElementRef referencing an instance of this object.
  801. */
  802. static DLLSPEC daeElementRef create(DAE& dae);
  803. /**
  804. * Creates a daeMetaElement object that describes this element in the meta object reflection framework.
  805. * If a daeMetaElement already exists it will return that instead of creating a new one.
  806. * @return A daeMetaElement describing this COLLADA element.
  807. */
  808. static DLLSPEC daeMetaElement* registerElement(DAE& dae);
  809. };
  810. class domUp_axis;
  811. typedef daeSmartRef<domUp_axis> domUp_axisRef;
  812. typedef daeTArray<domUp_axisRef> domUp_axis_Array;
  813. /**
  814. * The up_axis element contains descriptive information about coordinate system
  815. * of the geometric data. All coordinates are right-handed by definition.
  816. * This element specifies which axis is considered up. The default is the
  817. * Y-axis. The up_axis element may appear zero or one time.
  818. */
  819. class domUp_axis : public daeElement
  820. {
  821. public:
  822. virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::UP_AXIS; }
  823. static daeInt ID() { return 678; }
  824. virtual daeInt typeID() const { return ID(); }
  825. protected: // Value
  826. /**
  827. * The domUpAxisType value of the text data of this element.
  828. */
  829. domUpAxisType _value;
  830. public: //Accessors and Mutators
  831. /**
  832. * Gets the value of this element.
  833. * @return a domUpAxisType of the value.
  834. */
  835. domUpAxisType getValue() const { return _value; }
  836. /**
  837. * Sets the _value of this element.
  838. * @param val The new value for this element.
  839. */
  840. void setValue( domUpAxisType val ) { _value = val; }
  841. protected:
  842. /**
  843. * Constructor
  844. */
  845. domUp_axis(DAE& dae) : daeElement(dae), _value() {}
  846. /**
  847. * Destructor
  848. */
  849. virtual ~domUp_axis() {}
  850. /**
  851. * Overloaded assignment operator
  852. */
  853. virtual domUp_axis &operator=( const domUp_axis &cpy ) { (void)cpy; return *this; }
  854. public: // STATIC METHODS
  855. /**
  856. * Creates an instance of this class and returns a daeElementRef referencing it.
  857. * @return a daeElementRef referencing an instance of this object.
  858. */
  859. static DLLSPEC daeElementRef create(DAE& dae);
  860. /**
  861. * Creates a daeMetaElement object that describes this element in the meta object reflection framework.
  862. * If a daeMetaElement already exists it will return that instead of creating a new one.
  863. * @return A daeMetaElement describing this COLLADA element.
  864. */
  865. static DLLSPEC daeMetaElement* registerElement(DAE& dae);
  866. };
  867. protected: // Elements
  868. /**
  869. * The contributor element defines authoring information for asset management
  870. * @see domContributor
  871. */
  872. domContributor_Array elemContributor_array;
  873. /**
  874. * The created element contains the date and time that the parent element
  875. * was created and is represented in an ISO 8601 format. The created element
  876. * may appear zero or one time. @see domCreated
  877. */
  878. domCreatedRef elemCreated;
  879. /**
  880. * The keywords element contains a list of words used as search criteria for
  881. * the parent element. The keywords element may appear zero or more times.
  882. * @see domKeywords
  883. */
  884. domKeywordsRef elemKeywords;
  885. /**
  886. * The modified element contains the date and time that the parent element
  887. * was last modified and represented in an ISO 8601 format. The modified
  888. * element may appear zero or one time. @see domModified
  889. */
  890. domModifiedRef elemModified;
  891. /**
  892. * The revision element contains the revision information for the parent element.
  893. * The revision element may appear zero or one time. @see domRevision
  894. */
  895. domRevisionRef elemRevision;
  896. /**
  897. * The subject element contains a description of the topical subject of the
  898. * parent element. The subject element may appear zero or one time. @see
  899. * domSubject
  900. */
  901. domSubjectRef elemSubject;
  902. /**
  903. * The title element contains the title information for the parent element.
  904. * The title element may appear zero or one time. @see domTitle
  905. */
  906. domTitleRef elemTitle;
  907. /**
  908. * The unit element contains descriptive information about unit of measure.
  909. * It has attributes for the name of the unit and the measurement with respect
  910. * to the meter. The unit element may appear zero or one time. @see domUnit
  911. */
  912. domUnitRef elemUnit;
  913. /**
  914. * The up_axis element contains descriptive information about coordinate system
  915. * of the geometric data. All coordinates are right-handed by definition.
  916. * This element specifies which axis is considered up. The default is the
  917. * Y-axis. The up_axis element may appear zero or one time. @see domUp_axis
  918. */
  919. domUp_axisRef elemUp_axis;
  920. public: //Accessors and Mutators
  921. /**
  922. * Gets the contributor element array.
  923. * @return Returns a reference to the array of contributor elements.
  924. */
  925. domContributor_Array &getContributor_array() { return elemContributor_array; }
  926. /**
  927. * Gets the contributor element array.
  928. * @return Returns a constant reference to the array of contributor elements.
  929. */
  930. const domContributor_Array &getContributor_array() const { return elemContributor_array; }
  931. /**
  932. * Gets the created element.
  933. * @return a daeSmartRef to the created element.
  934. */
  935. const domCreatedRef getCreated() const { return elemCreated; }
  936. /**
  937. * Gets the keywords element.
  938. * @return a daeSmartRef to the keywords element.
  939. */
  940. const domKeywordsRef getKeywords() const { return elemKeywords; }
  941. /**
  942. * Gets the modified element.
  943. * @return a daeSmartRef to the modified element.
  944. */
  945. const domModifiedRef getModified() const { return elemModified; }
  946. /**
  947. * Gets the revision element.
  948. * @return a daeSmartRef to the revision element.
  949. */
  950. const domRevisionRef getRevision() const { return elemRevision; }
  951. /**
  952. * Gets the subject element.
  953. * @return a daeSmartRef to the subject element.
  954. */
  955. const domSubjectRef getSubject() const { return elemSubject; }
  956. /**
  957. * Gets the title element.
  958. * @return a daeSmartRef to the title element.
  959. */
  960. const domTitleRef getTitle() const { return elemTitle; }
  961. /**
  962. * Gets the unit element.
  963. * @return a daeSmartRef to the unit element.
  964. */
  965. const domUnitRef getUnit() const { return elemUnit; }
  966. /**
  967. * Gets the up_axis element.
  968. * @return a daeSmartRef to the up_axis element.
  969. */
  970. const domUp_axisRef getUp_axis() const { return elemUp_axis; }
  971. protected:
  972. /**
  973. * Constructor
  974. */
  975. domAsset(DAE& dae) : daeElement(dae), elemContributor_array(), elemCreated(), elemKeywords(), elemModified(), elemRevision(), elemSubject(), elemTitle(), elemUnit(), elemUp_axis() {}
  976. /**
  977. * Destructor
  978. */
  979. virtual ~domAsset() {}
  980. /**
  981. * Overloaded assignment operator
  982. */
  983. virtual domAsset &operator=( const domAsset &cpy ) { (void)cpy; return *this; }
  984. public: // STATIC METHODS
  985. /**
  986. * Creates an instance of this class and returns a daeElementRef referencing it.
  987. * @return a daeElementRef referencing an instance of this object.
  988. */
  989. static DLLSPEC daeElementRef create(DAE& dae);
  990. /**
  991. * Creates a daeMetaElement object that describes this element in the meta object reflection framework.
  992. * If a daeMetaElement already exists it will return that instead of creating a new one.
  993. * @return A daeMetaElement describing this COLLADA element.
  994. */
  995. static DLLSPEC daeMetaElement* registerElement(DAE& dae);
  996. };
  997. #endif