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

Revision 964, 9.2 KB checked in by igarcia, 19 years ago (diff)
RevLine 
[964]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/FCDLibrary.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/FCDLibrary.h</h1><a href="_f_c_d_library_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 <span class="comment">/*</span>
27<a name="l00006"></a>00006 <span class="comment">    Based on the FS Import classes:</span>
28<a name="l00007"></a>00007 <span class="comment">    Copyright (C) 2005-2006 Feeling Software Inc</span>
29<a name="l00008"></a>00008 <span class="comment">    Copyright (C) 2005-2006 Autodesk Media Entertainment</span>
30<a name="l00009"></a>00009 <span class="comment">    MIT License: http://www.opensource.org/licenses/mit-license.php</span>
31<a name="l00010"></a>00010 <span class="comment">*/</span>
32<a name="l00011"></a>00011
33<a name="l00018"></a>00018 <span class="preprocessor">#ifndef _FCD_LIBRARY_</span>
34<a name="l00019"></a>00019 <span class="preprocessor"></span><span class="preprocessor">#define _FCD_LIBRARY_</span>
35<a name="l00020"></a>00020 <span class="preprocessor"></span>
36<a name="l00021"></a>00021 <span class="keyword">class </span><a class="code" href="class_f_c_document.html">FCDocument</a>;
37<a name="l00022"></a>00022 <span class="keyword">class </span><a class="code" href="class_f_c_d_entity.html">FCDEntity</a>;
38<a name="l00023"></a>00023
39<a name="l00037"></a>00037 <span class="keyword">template</span> &lt;<span class="keyword">class</span> T&gt;
40<a name="l00038"></a><a class="code" href="class_f_c_d_library.html">00038</a> <span class="keyword">class </span><a class="code" href="class_f_c_d_library.html">FCDLibrary</a>
41<a name="l00039"></a>00039 {
42<a name="l00040"></a>00040 <span class="keyword">private</span>:
43<a name="l00041"></a>00041     <a class="code" href="class_f_c_document.html">FCDocument</a>* document;
44<a name="l00042"></a>00042
45<a name="l00043"></a>00043 <span class="keyword">protected</span>:
46<a name="l00045"></a><a class="code" href="class_f_c_d_library.html#607c0512d9c60197945dff2cb8466e53">00045</a>     <span class="keyword">typedef</span> <a class="code" href="classvector.html">vector&lt;T*&gt;</a> <a class="code" href="classvector.html">FCDEntityList</a>;
47<a name="l00046"></a>00046
48<a name="l00050"></a><a class="code" href="class_f_c_d_library.html#51f2628cd303aea6368029a8ce77a7e4">00050</a>     <a class="code" href="classvector.html">FCDEntityList</a> <a class="code" href="class_f_c_d_library.html#51f2628cd303aea6368029a8ce77a7e4">entities</a>;
49<a name="l00051"></a>00051
50<a name="l00054"></a><a class="code" href="class_f_c_d_library.html#1fec4251289d23f91d879952d26c426a">00054</a>     <span class="keyword">inline</span> <a class="code" href="class_f_c_document.html">FCDocument</a>* <a class="code" href="class_f_c_d_library.html#1fec4251289d23f91d879952d26c426a">GetDocument</a>() { <span class="keywordflow">return</span> document; }
51<a name="l00055"></a><a class="code" href="class_f_c_d_library.html#7f20eea0bf100d5548d345a1c043896b">00055</a>     <span class="keyword">inline</span> <span class="keyword">const</span> <a class="code" href="class_f_c_document.html">FCDocument</a>* <a class="code" href="class_f_c_d_library.html#1fec4251289d23f91d879952d26c426a">GetDocument</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> document; }
52<a name="l00057"></a>00057 <span class="keyword">public</span>:
53<a name="l00061"></a>00061     <a class="code" href="class_f_c_d_library.html#9cf3270dce2286c94003cabe65602bd3">FCDLibrary</a>(<a class="code" href="class_f_c_document.html">FCDocument</a>* document);
54<a name="l00062"></a>00062
55<a name="l00065"></a>00065 <span class="keyword">virtual</span> <a class="code" href="class_f_c_d_library.html#ca8cf97f6797c52ff37422d7e7158afd">~FCDLibrary</a>();
56<a name="l00066"></a>00066
57<a name="l00069"></a>00069     T* <a class="code" href="class_f_c_d_library.html#a5cdcac5a447298d5e3816e4f8c864d0">AddEntity</a>();
58<a name="l00070"></a>00070
59<a name="l00073"></a>00073 <span class="keywordtype">void</span> <a class="code" href="class_f_c_d_library.html#3fbfbcf4ade5b9c94d2ee2f59db5921d">ReleaseEntity</a>(T* entity);
60<a name="l00074"></a>00074
61<a name="l00079"></a>00079 T* <a class="code" href="class_f_c_d_library.html#5d9fdcf2b8d4edb840a1502c9814dd27">FindDaeId</a>(<span class="keyword">const</span> string&amp; daeId);
62<a name="l00080"></a>00080
63<a name="l00083"></a><a class="code" href="class_f_c_d_library.html#5045adb8f08e9a8f51fada3fdce63470">00083</a>     <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code" href="class_f_c_d_library.html#5045adb8f08e9a8f51fada3fdce63470">IsEmpty</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code" href="class_f_c_d_library.html#51f2628cd303aea6368029a8ce77a7e4">entities</a>.empty(); }
64<a name="l00084"></a>00084
65<a name="l00089"></a>00089 <span class="keyword">virtual</span> <a class="code" href="class_f_u_status.html">FUStatus</a> <a class="code" href="class_f_c_d_library.html#813347c0e988c025235eaeaf12400d1a">LoadFromXML</a>(xmlNode* node);
66<a name="l00090"></a>00090
67<a name="l00093"></a>00093 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="class_f_c_d_library.html#297ebf05ef14830be557ddf57909471f">WriteToXML</a>(xmlNode* node) <span class="keyword">const</span>;
68<a name="l00094"></a>00094
69<a name="l00097"></a>00097 <a class="code" href="classvector.html">StringList</a> <a class="code" href="class_f_c_d_library.html#6c0c8f49e36eb99b82f838231e013461">GetPostProcessCmds</a>() <span class="keyword">const</span>;
70<a name="l00098"></a>00098
71<a name="l00101"></a><a class="code" href="class_f_c_d_library.html#b79bd9b55bce87bcb597a3343a94957a">00101</a>     <span class="keyword">inline</span> size_t <a class="code" href="class_f_c_d_library.html#b79bd9b55bce87bcb597a3343a94957a">GetEntityCount</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code" href="class_f_c_d_library.html#51f2628cd303aea6368029a8ce77a7e4">entities</a>.size(); }
72<a name="l00102"></a>00102
73<a name="l00107"></a><a class="code" href="class_f_c_d_library.html#b2aa913794a0ceaafe3b3773deac3398">00107</a>     <span class="keyword">inline</span> T* <a class="code" href="class_f_c_d_library.html#b2aa913794a0ceaafe3b3773deac3398">GetEntity</a>(size_t index) { <a class="code" href="_f_u_assert_8h.html#72b8444eb608787f1db6bf1d53e0310f">FUAssert</a>(index &lt; <a class="code" href="class_f_c_d_library.html#b79bd9b55bce87bcb597a3343a94957a">GetEntityCount</a>(), <span class="keywordflow">return</span> NULL); <span class="keywordflow">return</span> <a class="code" href="class_f_c_d_library.html#51f2628cd303aea6368029a8ce77a7e4">entities</a>.at(index); }
74<a name="l00108"></a>00108
75<a name="l00113"></a><a class="code" href="class_f_c_d_library.html#3a53f0a1500d48e935f1469f002f27ce">00113</a>     <span class="keyword">inline</span> <span class="keyword">const</span> T* <a class="code" href="class_f_c_d_library.html#b2aa913794a0ceaafe3b3773deac3398">GetEntity</a>(size_t index)<span class="keyword"> const </span>{ <a class="code" href="_f_u_assert_8h.html#72b8444eb608787f1db6bf1d53e0310f">FUAssert</a>(index &lt; <a class="code" href="class_f_c_d_library.html#b79bd9b55bce87bcb597a3343a94957a">GetEntityCount</a>(), <span class="keywordflow">return</span> NULL); <span class="keywordflow">return</span> <a class="code" href="class_f_c_d_library.html#51f2628cd303aea6368029a8ce77a7e4">entities</a>.at(index); }
76<a name="l00114"></a>00114 };
77<a name="l00115"></a>00115
78<a name="l00116"></a>00116 <span class="preprocessor">#include "FCDocument/FCDLibrary.hpp"</span>
79<a name="l00117"></a>00117
80<a name="l00118"></a>00118 <span class="preprocessor">#endif // _FCD_LIBRARY_</span>
81</pre></div><hr size="1"><address style="align: right;"><small>Generated on Fri May 12 16:44:38 2006 for FCollada by&nbsp;
82<a href="http://www.doxygen.org/index.html">
83<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.6-NO </small></address>
84</body>
85</html>
Note: See TracBrowser for help on using the repository browser.