source: NonGTP/FCollada/Documentation/_f_c_d_extra_8h-source.html @ 964

Revision 964, 26.6 KB checked in by igarcia, 18 years ago (diff)
Line 
1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
3<title>FCollada: FCDocument/FCDExtra.h Source File</title>
4<link href="doxygen.css" rel="stylesheet" type="text/css">
5<link href="tabs.css" rel="stylesheet" type="text/css">
6</head><body>
7<!-- Generated by Doxygen 1.4.6-NO -->
8<div class="tabs">
9  <ul>
10    <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
11    <li><a href="modules.html"><span>Modules</span></a></li>
12    <li><a href="namespaces.html"><span>Namespaces</span></a></li>
13    <li><a href="classes.html"><span>Classes</span></a></li>
14    <li id="current"><a href="files.html"><span>Files</span></a></li>
15    <li><a href="pages.html"><span>Related&nbsp;Pages</span></a></li>
16  </ul></div>
17<div class="tabs">
18  <ul>
19    <li><a href="files.html"><span>File&nbsp;List</span></a></li>
20    <li><a href="globals.html"><span>File&nbsp;Members</span></a></li>
21  </ul></div>
22<h1>FCDocument/FCDExtra.h</h1><a href="_f_c_d_extra_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/*</span>
23<a name="l00002"></a>00002 <span class="comment">    Copyright (C) 2005-2006 Feeling Software Inc.</span>
24<a name="l00003"></a>00003 <span class="comment">    MIT License: http://www.opensource.org/licenses/mit-license.php</span>
25<a name="l00004"></a>00004 <span class="comment">*/</span>
26<a name="l00005"></a>00005
27<a name="l00012"></a>00012 <span class="preprocessor">#ifndef _FCD_EXTRA_H_</span>
28<a name="l00013"></a>00013 <span class="preprocessor"></span><span class="preprocessor">#define _FCD_EXTRA_H_</span>
29<a name="l00014"></a>00014 <span class="preprocessor"></span>
30<a name="l00015"></a>00015 <span class="preprocessor">#include "<a class="code" href="_f_c_d_object_8h.html">FCDocument/FCDObject.h</a>"</span>
31<a name="l00016"></a>00016
32<a name="l00017"></a>00017 <span class="keyword">class </span><a class="code" href="class_f_c_d_animated.html">FCDAnimated</a>;
33<a name="l00018"></a>00018 <span class="keyword">class </span><a class="code" href="class_f_c_d_animated_custom.html">FCDAnimatedCustom</a>;
34<a name="l00019"></a>00019 <span class="keyword">class </span><a class="code" href="class_f_c_d_e_technique.html">FCDETechnique</a>;
35<a name="l00020"></a>00020 <span class="keyword">class </span><a class="code" href="class_f_c_d_e_node.html">FCDENode</a>;
36<a name="l00021"></a>00021
37<a name="l00026"></a><a class="code" href="struct_f_c_d_e_attribute.html">00026</a> <span class="keyword">struct </span><a class="code" href="struct_f_c_d_e_attribute.html">FCDEAttribute</a>
38<a name="l00027"></a>00027 {
39<a name="l00028"></a><a class="code" href="struct_f_c_d_e_attribute.html#5bacdc2478971ab829621e47300070df">00028</a>     string <a class="code" href="struct_f_c_d_e_attribute.html#5bacdc2478971ab829621e47300070df">name</a>;
40<a name="l00029"></a><a class="code" href="struct_f_c_d_e_attribute.html#fec9d27e54b11b857248ee8ca20acbd7">00029</a>     fstring <a class="code" href="struct_f_c_d_e_attribute.html#fec9d27e54b11b857248ee8ca20acbd7">value</a>;
41<a name="l00030"></a>00030 };
42<a name="l00031"></a>00031
43<a name="l00032"></a><a class="code" href="_f_c_d_extra_8h.html#77ca5d409fdce3ad115b2859143b7cda">00032</a> <span class="keyword">typedef</span> <a class="code" href="classvector.html">vector&lt;FCDETechnique*&gt;</a> <a class="code" href="classvector.html">FCDETechniqueList</a>;
44<a name="l00033"></a><a class="code" href="_f_c_d_extra_8h.html#d99465ee469892920d31626b2d807771">00033</a> <span class="keyword">typedef</span> <a class="code" href="classvector.html">vector&lt;FCDENode*&gt;</a> <a class="code" href="classvector.html">FCDENodeList</a>;
45<a name="l00034"></a><a class="code" href="_f_c_d_extra_8h.html#8137cd200c63ee68e678c242d0e9191b">00034</a> <span class="keyword">typedef</span> <a class="code" href="classvector.html">vector&lt;FCDEAttribute*&gt;</a> <a class="code" href="classvector.html">FCDEAttributeList</a>;
46<a name="l00044"></a><a class="code" href="class_f_c_d_extra.html">00044</a> <span class="keyword">class </span>FCOLLADA_EXPORT <a class="code" href="class_f_c_d_extra.html">FCDExtra</a> : <span class="keyword">public</span> <a class="code" href="class_f_c_d_object.html">FCDObject</a>
47<a name="l00045"></a>00045 {
48<a name="l00046"></a>00046 <span class="keyword">private</span>:
49<a name="l00047"></a>00047     <a class="code" href="_f_u_object_type_8h.html#8124b8a8706cd10260f8cd5a7bd8e691">DeclareObjectType</a>;
50<a name="l00048"></a>00048 <a class="code" href="classvector.html">FCDETechniqueList</a> techniques;
51<a name="l00049"></a>00049
52<a name="l00050"></a>00050 <span class="keyword">public</span>:
53<a name="l00054"></a>00054     <a class="code" href="class_f_c_d_extra.html">FCDExtra</a>(<a class="code" href="class_f_c_document.html">FCDocument</a>* document);
54<a name="l00055"></a>00055
55<a name="l00058"></a>00058 <span class="keyword">virtual</span> ~<a class="code" href="class_f_c_d_extra.html">FCDExtra</a>();
56<a name="l00059"></a>00059
57<a name="l00062"></a><a class="code" href="class_f_c_d_extra.html#7d674d41e115b67b2af096ad636a1e2b">00062</a>     <a class="code" href="classvector.html">FCDETechniqueList</a>&amp; GetTechniques() { <span class="keywordflow">return</span> techniques; }
58<a name="l00063"></a><a class="code" href="class_f_c_d_extra.html#5eb3e39ea7de061b0ed8f6e7a106b9d1">00063</a>     <span class="keyword">const</span> <a class="code" href="classvector.html">FCDETechniqueList</a>&amp; GetTechniques()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> techniques; }
59<a name="l00067"></a><a class="code" href="class_f_c_d_extra.html#5a4869ab9474feedebf116f847b2bd89">00067</a>     size_t GetTechniqueCount()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> techniques.size(); }
60<a name="l00068"></a>00068
61<a name="l00073"></a><a class="code" href="class_f_c_d_extra.html#6f4055a625cda156945179d7428cef49">00073</a>     <a class="code" href="class_f_c_d_e_technique.html">FCDETechnique</a>* GetTechnique(size_t index) { <a class="code" href="_f_u_assert_8h.html#72b8444eb608787f1db6bf1d53e0310f">FUAssert</a>(index &lt; techniques.size(), <span class="keywordflow">return</span> NULL); <span class="keywordflow">return</span> techniques.at(index); }
62<a name="l00074"></a><a class="code" href="class_f_c_d_extra.html#116dad01a2fcdb569eba2fb4e69dae8d">00074</a>     <span class="keyword">const</span> <a class="code" href="class_f_c_d_e_technique.html">FCDETechnique</a>* GetTechnique(size_t index)<span class="keyword"> const </span>{ <a class="code" href="_f_u_assert_8h.html#72b8444eb608787f1db6bf1d53e0310f">FUAssert</a>(index &lt; techniques.size(), <span class="keywordflow">return</span> NULL); <span class="keywordflow">return</span> techniques.at(index); }
63<a name="l00081"></a>00081 <a class="code" href="class_f_c_d_e_technique.html">FCDETechnique</a>* AddTechnique(<span class="keyword">const</span> <span class="keywordtype">char</span>* profile);
64<a name="l00082"></a><a class="code" href="class_f_c_d_extra.html#bd61995d41be06815fd2fc3a6c54eee1">00082</a>     <span class="keyword">inline</span> <a class="code" href="class_f_c_d_e_technique.html">FCDETechnique</a>* AddTechnique(<span class="keyword">const</span> string&amp; profile) { <span class="keywordflow">return</span> AddTechnique(profile.c_str()); }
65<a name="l00086"></a>00086 <span class="keywordtype">void</span> ReleaseTechnique(<a class="code" href="class_f_c_d_e_technique.html">FCDETechnique</a>* technique);
66<a name="l00087"></a>00087
67<a name="l00092"></a>00092 <a class="code" href="class_f_c_d_e_technique.html">FCDETechnique</a>* FindTechnique(<span class="keyword">const</span> <span class="keywordtype">char</span>* profile);
68<a name="l00093"></a>00093 <span class="keyword">const</span> <a class="code" href="class_f_c_d_e_technique.html">FCDETechnique</a>* FindTechnique(<span class="keyword">const</span> <span class="keywordtype">char</span>* profile) <span class="keyword">const</span>;
69<a name="l00094"></a><a class="code" href="class_f_c_d_extra.html#8bacfdc99dd68be4674528567f77da66">00094</a>     <span class="keyword">inline</span> <a class="code" href="class_f_c_d_e_technique.html">FCDETechnique</a>* FindTechnique(<span class="keyword">const</span> string&amp; profile) { <span class="keywordflow">return</span> FindTechnique(profile.c_str()); }
70<a name="l00095"></a><a class="code" href="class_f_c_d_extra.html#ca8be3a01d37cbc7de9a949dcf222e3d">00095</a>     <span class="keyword">inline</span> <span class="keyword">const</span> <a class="code" href="class_f_c_d_e_technique.html">FCDETechnique</a>* FindTechnique(<span class="keyword">const</span> string&amp; profile)<span class="keyword"> const </span>{ <span class="keywordflow">return</span> FindTechnique(profile.c_str()); }
71<a name="l00103"></a>00103 <a class="code" href="class_f_c_d_e_node.html">FCDENode</a>* FindRootNode(<span class="keyword">const</span> <span class="keywordtype">char</span>* name);
72<a name="l00104"></a>00104 <span class="keyword">const</span> <a class="code" href="class_f_c_d_e_node.html">FCDENode</a>* FindRootNode(<span class="keyword">const</span> <span class="keywordtype">char</span>* name) <span class="keyword">const</span>;
73<a name="l00105"></a><a class="code" href="class_f_c_d_extra.html#d7b28cec37ea64dd883d02214a536fb9">00105</a>     <span class="keyword">inline</span> <a class="code" href="class_f_c_d_e_node.html">FCDENode</a>* FindRootNode(<span class="keyword">const</span> string&amp; name) { <span class="keywordflow">return</span> FindRootNode(name.c_str()); }
74<a name="l00106"></a><a class="code" href="class_f_c_d_extra.html#becf8b2e6a95d7787627dfd41c7fb507">00106</a>     <span class="keyword">inline</span> <span class="keyword">const</span> <a class="code" href="class_f_c_d_e_node.html">FCDENode</a>* FindRootNode(<span class="keyword">const</span> string&amp; name)<span class="keyword"> const </span>{ <span class="keywordflow">return</span> FindRootNode(name.c_str()); }
75<a name="l00112"></a>00112 <a class="code" href="class_f_u_status.html">FUStatus</a> LoadFromXML(xmlNode* extraNode);
76<a name="l00113"></a>00113
77<a name="l00117"></a>00117     xmlNode* WriteToXML(xmlNode* parentNode) <span class="keyword">const</span>;
78<a name="l00118"></a>00118 };
79<a name="l00119"></a>00119
80<a name="l00129"></a><a class="code" href="class_f_c_d_e_node.html">00129</a> <span class="keyword">class </span>FCOLLADA_EXPORT FCDENode : <span class="keyword">public</span> <a class="code" href="class_f_c_d_object.html">FCDObject</a>
81<a name="l00130"></a>00130 {
82<a name="l00131"></a>00131 <span class="keyword">private</span>:
83<a name="l00132"></a>00132     <a class="code" href="_f_u_object_type_8h.html#8124b8a8706cd10260f8cd5a7bd8e691">DeclareObjectType</a>;
84<a name="l00133"></a>00133
85<a name="l00134"></a>00134     string name;
86<a name="l00135"></a>00135     fstring content;
87<a name="l00136"></a>00136
88<a name="l00137"></a>00137     FCDENode* parent;
89<a name="l00138"></a>00138 <a class="code" href="classvector.html">FCDENodeList</a> children;
90<a name="l00139"></a>00139 <a class="code" href="classvector.html">FCDEAttributeList</a> attributes;
91<a name="l00140"></a>00140
92<a name="l00141"></a>00141     <a class="code" href="class_f_c_d_animated_custom.html">FCDAnimatedCustom</a>* animated;
93<a name="l00142"></a>00142
94<a name="l00143"></a>00143 <span class="keyword">public</span>:
95<a name="l00148"></a>00148     FCDENode(<a class="code" href="class_f_c_document.html">FCDocument</a>* document, FCDENode* parent);
96<a name="l00149"></a>00149
97<a name="l00154"></a>00154 <span class="keyword">virtual</span> ~FCDENode();
98<a name="l00155"></a>00155
99<a name="l00158"></a>00158 <span class="keywordtype">void</span> Release();
100<a name="l00159"></a>00159
101<a name="l00163"></a><a class="code" href="class_f_c_d_e_node.html#595efe3b26ec3f240192f730fc312989">00163</a>     <span class="keyword">inline</span> <span class="keyword">const</span> <span class="keywordtype">char</span>* GetName()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> name.c_str(); }
102<a name="l00164"></a>00164
103<a name="l00168"></a><a class="code" href="class_f_c_d_e_node.html#1fff5ba3cbc90cf7b6e43e5a9fdf94bb">00168</a>     <span class="keyword">inline</span> <span class="keywordtype">void</span> SetName(<span class="keyword">const</span> <span class="keywordtype">char</span>* _name) { name = _name; }
104<a name="l00169"></a><a class="code" href="class_f_c_d_e_node.html#90aff3dda7090137a8e39971f3cc0510">00169</a>     <span class="keyword">inline</span> <span class="keywordtype">void</span> SetName(<span class="keyword">const</span> string&amp; _name) { name = _name; }
105<a name="l00175"></a><a class="code" href="class_f_c_d_e_node.html#b93261cd95ef7895b0823f7ffe23c402">00175</a>     <span class="keyword">const</span> fchar* GetContent()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> content.c_str(); }
106<a name="l00176"></a>00176
107<a name="l00181"></a>00181 <span class="keywordtype">void</span> SetContent(<span class="keyword">const</span> fchar* _content);
108<a name="l00182"></a><a class="code" href="class_f_c_d_e_node.html#fa5aa472e42c4d60b5b3542a327271d5">00182</a>     <span class="keyword">inline</span> <span class="keywordtype">void</span> SetContent(<span class="keyword">const</span> fstring&amp; _content) { <span class="keywordflow">return</span> SetContent(_content.c_str()); }
109<a name="l00188"></a><a class="code" href="class_f_c_d_e_node.html#ae36239184d7b2ffd48a521410597388">00188</a>     <a class="code" href="class_f_c_d_animated_custom.html">FCDAnimatedCustom</a>* GetAnimated() { <span class="keywordflow">return</span> animated; }
110<a name="l00189"></a><a class="code" href="class_f_c_d_e_node.html#b58f086b7b09062047cb58b7a8e25742">00189</a>     <span class="keyword">const</span> <a class="code" href="class_f_c_d_animated_custom.html">FCDAnimatedCustom</a>* GetAnimated()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> animated; }
111<a name="l00196"></a><a class="code" href="class_f_c_d_e_node.html#072547f941f76cae03fbcb01b345a9f9">00196</a>     FCDENode* GetParent() { <span class="keywordflow">return</span> parent; }
112<a name="l00197"></a><a class="code" href="class_f_c_d_e_node.html#4fb6c8bde7310dcfd4718f140aa5d07c">00197</a>     <span class="keyword">const</span> FCDENode* GetParent()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> parent; }
113<a name="l00201"></a><a class="code" href="class_f_c_d_e_node.html#f478e0808f9f29d463f417a2bbe7e274">00201</a>     <a class="code" href="classvector.html">FCDENodeList</a>&amp; GetChildNodes() { <span class="keywordflow">return</span> children; }
114<a name="l00202"></a><a class="code" href="class_f_c_d_e_node.html#c552bbfcd43cf29f3990f0d8d38047ee">00202</a>     <span class="keyword">const</span> <a class="code" href="classvector.html">FCDENodeList</a>&amp; GetChildNodes()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> children; }
115<a name="l00206"></a><a class="code" href="class_f_c_d_e_node.html#75bb1798b9c6f99db77ef6d6559cf4f1">00206</a>     size_t GetChildNodeCount()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> children.size(); }
116<a name="l00207"></a>00207
117<a name="l00212"></a><a class="code" href="class_f_c_d_e_node.html#5b6f7e6a52e743bd8280c2a96813e1c2">00212</a>     FCDENode* GetChildNode(size_t index) { <a class="code" href="_f_u_assert_8h.html#72b8444eb608787f1db6bf1d53e0310f">FUAssert</a>(index &lt; children.size(), <span class="keywordflow">return</span> NULL); <span class="keywordflow">return</span> children.at(index); }
118<a name="l00213"></a><a class="code" href="class_f_c_d_e_node.html#1b96ab4f748661f9d22229c41f335607">00213</a>     <span class="keyword">const</span> FCDENode* GetChildNode(size_t index)<span class="keyword"> const </span>{ <a class="code" href="_f_u_assert_8h.html#72b8444eb608787f1db6bf1d53e0310f">FUAssert</a>(index &lt; children.size(), <span class="keywordflow">return</span> NULL); <span class="keywordflow">return</span> children.at(index); }
119<a name="l00217"></a>00217     FCDENode* AddChildNode();
120<a name="l00218"></a>00218
121<a name="l00221"></a>00221 <span class="keywordtype">void</span> ReleaseChildNode(FCDENode* childNode);
122<a name="l00222"></a>00222
123<a name="l00228"></a>00228 FCDENode* FindChildNode(<span class="keyword">const</span> <span class="keywordtype">char</span>* name);
124<a name="l00229"></a>00229 <span class="keyword">const</span> FCDENode* FindChildNode(<span class="keyword">const</span> <span class="keywordtype">char</span>* name) <span class="keyword">const</span>;
125<a name="l00230"></a><a class="code" href="class_f_c_d_e_node.html#88d94a25c485496556d68e629b4cb754">00230</a>     <span class="keyword">inline</span> FCDENode* FindChildNode(<span class="keyword">const</span> string&amp; name) { <span class="keywordflow">return</span> FindChildNode(name.c_str()); }
126<a name="l00231"></a><a class="code" href="class_f_c_d_e_node.html#77ebc7394a97a3e782d782b20e17956a">00231</a>     <span class="keyword">inline</span> <span class="keyword">const</span> FCDENode* FindChildNode(<span class="keyword">const</span> string&amp; name)<span class="keyword"> const </span>{ <span class="keywordflow">return</span> FindChildNode(name.c_str()); }
127<a name="l00242"></a>00242 FCDENode* FindParameter(<span class="keyword">const</span> <span class="keywordtype">char</span>* name);
128<a name="l00243"></a>00243
129<a name="l00251"></a>00251 <span class="keywordtype">void</span> FindParameters(<a class="code" href="classvector.html">FCDENodeList</a>&amp; nodes, <a class="code" href="classvector.html">StringList</a>&amp; names);
130<a name="l00252"></a>00252
131<a name="l00255"></a><a class="code" href="class_f_c_d_e_node.html#2842d4c17b41e03d96baa9d56c33e2b4">00255</a>     <a class="code" href="classvector.html">FCDEAttributeList</a>&amp; GetAttributes() { <span class="keywordflow">return</span> attributes; }
132<a name="l00256"></a><a class="code" href="class_f_c_d_e_node.html#5d0a38042b7cca4c74fdc92e4c21dd7c">00256</a>     <span class="keyword">const</span> <a class="code" href="classvector.html">FCDEAttributeList</a>&amp; GetAttributes()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> attributes; }
133<a name="l00260"></a><a class="code" href="class_f_c_d_e_node.html#7615bf8b5720c9a2d483cf6beba795c2">00260</a>     size_t GetAttributeCount()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> attributes.size(); }
134<a name="l00261"></a>00261
135<a name="l00266"></a><a class="code" href="class_f_c_d_e_node.html#c0ba7eb643eb141adaa789270d33d296">00266</a>     <a class="code" href="struct_f_c_d_e_attribute.html">FCDEAttribute</a>* GetAttribute(size_t index) { <a class="code" href="_f_u_assert_8h.html#72b8444eb608787f1db6bf1d53e0310f">FUAssert</a>(index &lt; attributes.size(), <span class="keywordflow">return</span> NULL); <span class="keywordflow">return</span> attributes.at(index); }
136<a name="l00267"></a><a class="code" href="class_f_c_d_e_node.html#5ec77bab1c14fb21d72b407a6c6f59b6">00267</a>     <span class="keyword">const</span> <a class="code" href="struct_f_c_d_e_attribute.html">FCDEAttribute</a>* GetAttribute(size_t index)<span class="keyword"> const </span>{ <a class="code" href="_f_u_assert_8h.html#72b8444eb608787f1db6bf1d53e0310f">FUAssert</a>(index &lt; attributes.size(), <span class="keywordflow">return</span> NULL); <span class="keywordflow">return</span> attributes.at(index); }
137<a name="l00275"></a>00275 <a class="code" href="struct_f_c_d_e_attribute.html">FCDEAttribute</a>* <a class="code" href="namespace_f_u_xml_writer.html#b9ebd2938c18cd5db3b919c035621584">AddAttribute</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* _name, <span class="keyword">const</span> fchar* _value);
138<a name="l00276"></a><a class="code" href="class_f_c_d_e_node.html#ed7fa4747a6b16732a984f776aac187c">00276</a>     <span class="keyword">inline</span> <a class="code" href="struct_f_c_d_e_attribute.html">FCDEAttribute</a>* <a class="code" href="namespace_f_u_xml_writer.html#b9ebd2938c18cd5db3b919c035621584">AddAttribute</a>(<span class="keyword">const</span> string&amp; _name, <span class="keyword">const</span> fchar* _value) { <span class="keywordflow">return</span> <a class="code" href="namespace_f_u_xml_writer.html#b9ebd2938c18cd5db3b919c035621584">AddAttribute</a>(_name.c_str(), _value); }
139<a name="l00277"></a><a class="code" href="class_f_c_d_e_node.html#bfbf907eff3c09d6d1c3289bf709113b">00277</a>     <span class="keyword">inline</span> <a class="code" href="struct_f_c_d_e_attribute.html">FCDEAttribute</a>* <a class="code" href="namespace_f_u_xml_writer.html#b9ebd2938c18cd5db3b919c035621584">AddAttribute</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* _name, <span class="keyword">const</span> fstring&amp; _value) { <span class="keywordflow">return</span> <a class="code" href="namespace_f_u_xml_writer.html#b9ebd2938c18cd5db3b919c035621584">AddAttribute</a>(_name, _value.c_str()); }
140<a name="l00278"></a><a class="code" href="class_f_c_d_e_node.html#6dfc85c2269ee7b149ef43e74e5dd173">00278</a>     <span class="keyword">inline</span> <a class="code" href="struct_f_c_d_e_attribute.html">FCDEAttribute</a>* <a class="code" href="namespace_f_u_xml_writer.html#b9ebd2938c18cd5db3b919c035621584">AddAttribute</a>(<span class="keyword">const</span> string&amp; _name, <span class="keyword">const</span> fstring&amp; _value) { <span class="keywordflow">return</span> <a class="code" href="namespace_f_u_xml_writer.html#b9ebd2938c18cd5db3b919c035621584">AddAttribute</a>(_name.c_str(), _value.c_str()); }
141<a name="l00279"></a><a class="code" href="class_f_c_d_e_node.html#c7b901929ba8fec87c69e0ab5aebaca3">00279</a>     <span class="keyword">template</span> &lt;<span class="keyword">typename</span> T&gt; <span class="keyword">inline</span> <a class="code" href="struct_f_c_d_e_attribute.html">FCDEAttribute</a>* <a class="code" href="namespace_f_u_xml_writer.html#b9ebd2938c18cd5db3b919c035621584">AddAttribute</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* _name, <span class="keyword">const</span> T&amp; _value) { <span class="keywordflow">return</span> <a class="code" href="namespace_f_u_xml_writer.html#b9ebd2938c18cd5db3b919c035621584">AddAttribute</a>(_name, <a class="code" href="_f_u_string_8h.html#07704e1457df8a52db49b436f419d9f9">TO_FSTRING</a>(_value)); }
142<a name="l00280"></a><a class="code" href="class_f_c_d_e_node.html#f0c5ed5f0df1c41a63f901d0e74b0f05">00280</a>     <span class="keyword">template</span> &lt;<span class="keyword">typename</span> T&gt; <span class="keyword">inline</span> <a class="code" href="struct_f_c_d_e_attribute.html">FCDEAttribute</a>* <a class="code" href="namespace_f_u_xml_writer.html#b9ebd2938c18cd5db3b919c035621584">AddAttribute</a>(<span class="keyword">const</span> string&amp; _name, <span class="keyword">const</span> T&amp; _value) { <span class="keywordflow">return</span> <a class="code" href="namespace_f_u_xml_writer.html#b9ebd2938c18cd5db3b919c035621584">AddAttribute</a>(_name.c_str(), <a class="code" href="_f_u_string_8h.html#07704e1457df8a52db49b436f419d9f9">TO_FSTRING</a>(_value)); }
143<a name="l00284"></a>00284 <span class="keywordtype">void</span> ReleaseAttribute(<a class="code" href="struct_f_c_d_e_attribute.html">FCDEAttribute</a>* attribute);
144<a name="l00285"></a>00285
145<a name="l00291"></a>00291 <a class="code" href="struct_f_c_d_e_attribute.html">FCDEAttribute</a>* FindAttribute(<span class="keyword">const</span> <span class="keywordtype">char</span>* name);
146<a name="l00292"></a>00292 <span class="keyword">const</span> <a class="code" href="struct_f_c_d_e_attribute.html">FCDEAttribute</a>* FindAttribute(<span class="keyword">const</span> <span class="keywordtype">char</span>* name) <span class="keyword">const</span>;
147<a name="l00298"></a>00298 <span class="keyword">virtual</span> <a class="code" href="class_f_u_status.html">FUStatus</a> LoadFromXML(xmlNode* customNode);
148<a name="l00299"></a>00299
149<a name="l00303"></a>00303 <span class="keyword">virtual</span> xmlNode* WriteToXML(xmlNode* parentNode) <span class="keyword">const</span>;
150<a name="l00304"></a>00304
151<a name="l00305"></a>00305 <span class="keyword">protected</span>:
152<a name="l00311"></a>00311 <a class="code" href="class_f_u_status.html">FUStatus</a> ReadChildrenFromXML(xmlNode* customNode);
153<a name="l00312"></a>00312
154<a name="l00316"></a>00316 <span class="keywordtype">void</span> WriteChildrenToXML(xmlNode* customNode) <span class="keyword">const</span>;
155<a name="l00317"></a>00317 };
156<a name="l00318"></a>00318
157<a name="l00328"></a><a class="code" href="class_f_c_d_e_technique.html">00328</a> <span class="keyword">class </span>FCOLLADA_EXPORT FCDETechnique : <span class="keyword">public</span> FCDENode
158<a name="l00329"></a>00329 {
159<a name="l00330"></a>00330 <span class="keyword">private</span>:
160<a name="l00331"></a>00331     <a class="code" href="_f_u_object_type_8h.html#8124b8a8706cd10260f8cd5a7bd8e691">DeclareObjectType</a>;
161<a name="l00332"></a>00332
162<a name="l00333"></a>00333     string profile;
163<a name="l00334"></a>00334
164<a name="l00335"></a>00335 <span class="keyword">public</span>:
165<a name="l00340"></a>00340 FCDETechnique(<a class="code" href="class_f_c_document.html">FCDocument</a>* document, <span class="keyword">const</span> <span class="keywordtype">char</span>* profile);
166<a name="l00341"></a>00341
167<a name="l00344"></a>00344 <span class="keyword">virtual</span> ~FCDETechnique();
168<a name="l00345"></a>00345
169<a name="l00348"></a><a class="code" href="class_f_c_d_e_technique.html#f70bf2e36a2e43d218d9ef40d84d00c0">00348</a>     <span class="keyword">const</span> <span class="keywordtype">char</span>* GetProfile()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> profile.c_str(); }
170<a name="l00349"></a>00349
171<a name="l00354"></a>00354 <span class="keyword">virtual</span> <a class="code" href="class_f_u_status.html">FUStatus</a> <a class="code" href="class_f_c_d_e_node.html#b557706fe76d8f16648300b5e4b76143">LoadFromXML</a>(xmlNode* techniqueNode);
172<a name="l00355"></a>00355
173<a name="l00359"></a>00359 <span class="keyword">virtual</span> xmlNode* <a class="code" href="class_f_c_d_e_node.html#c108d9afc91036dfed87ca5088322862">WriteToXML</a>(xmlNode* parentNode) <span class="keyword">const</span>;
174<a name="l00360"></a>00360 };
175<a name="l00361"></a>00361
176<a name="l00362"></a>00362 <span class="preprocessor">#endif // _FCD_EXTRA_H_</span>
177</pre></div><hr size="1"><address style="align: right;"><small>Generated on Fri May 12 16:44:38 2006 for FCollada by&nbsp;
178<a href="http://www.doxygen.org/index.html">
179<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.6-NO </small></address>
180</body>
181</html>
Note: See TracBrowser for help on using the repository browser.