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

Revision 964, 8.4 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/FCDExternalReference.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/FCDExternalReference.h</h1><a href="_f_c_d_external_reference_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="l00017"></a>00017 <span class="preprocessor">#ifndef _FCD_XREF_ENTITY_H_</span>
34<a name="l00018"></a>00018 <span class="preprocessor"></span><span class="preprocessor">#define _FCD_XREF_ENTITY_H_</span>
35<a name="l00019"></a>00019 <span class="preprocessor"></span>
36<a name="l00020"></a>00020 <span class="preprocessor">#include "<a class="code" href="_f_c_d_entity_instance_8h.html">FCDocument/FCDEntityInstance.h</a>"</span>
37<a name="l00021"></a>00021 <span class="preprocessor">#include "<a class="code" href="_f_u_string_conversion_8h.html">FUtils/FUStringConversion.h</a>"</span>
38<a name="l00022"></a>00022 <span class="preprocessor">#include "FUtils/FUUri.h"</span>
39<a name="l00023"></a>00023
40<a name="l00031"></a><a class="code" href="class_f_c_d_external_reference.html">00031</a> <span class="keyword">class </span>FCOLLADA_EXPORT <a class="code" href="class_f_c_d_external_reference.html">FCDExternalReference</a> : <span class="keyword">public</span> <a class="code" href="class_f_c_d_entity_instance.html">FCDEntityInstance</a>
41<a name="l00032"></a>00032 {
42<a name="l00033"></a>00033 <span class="keyword">private</span>:
43<a name="l00034"></a>00034     <a class="code" href="_f_u_object_type_8h.html#8124b8a8706cd10260f8cd5a7bd8e691">DeclareObjectType</a>;
44<a name="l00035"></a>00035
45<a name="l00036"></a>00036 <a class="code" href="class_f_c_d_entity.html#9301a4bd5f4d4190ec13e40db4effdd7">FCDEntity::Type</a> entityType;
46<a name="l00037"></a>00037     FUUri uri;
47<a name="l00038"></a>00038
48<a name="l00039"></a>00039 <span class="keyword">public</span>:
49<a name="l00046"></a>00046 <a class="code" href="class_f_c_d_external_reference.html">FCDExternalReference</a>(<a class="code" href="class_f_c_document.html">FCDocument</a>* document, <span class="keyword">const</span> FUUri&amp; uri);
50<a name="l00047"></a>00047
51<a name="l00051"></a><a class="code" href="class_f_c_d_external_reference.html#2cef5b7199379ed6edbaf72ad03e017c">00051</a>     <span class="keyword">virtual</span> ~<a class="code" href="class_f_c_d_external_reference.html">FCDExternalReference</a>() {}
52<a name="l00052"></a>00052
53<a name="l00055"></a><a class="code" href="class_f_c_d_external_reference.html#4a98a4e429f89532352fa439b1fa7758">00055</a>     <span class="keyword">virtual</span> Type <a class="code" href="class_f_c_d_entity_instance.html#773c2cfdbad937e93da7a3fa71a671a7">GetType</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> EXTERNAL_REFERENCE; }
54<a name="l00056"></a>00056
55<a name="l00059"></a><a class="code" href="class_f_c_d_external_reference.html#01700ec6bd0e96d57fb3ce08efc3ef52">00059</a>     <span class="keyword">inline</span> <a class="code" href="class_f_c_d_entity.html#9301a4bd5f4d4190ec13e40db4effdd7">FCDEntity::Type</a> GetEntityType()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> entityType; }
56<a name="l00060"></a>00060
57<a name="l00063"></a><a class="code" href="class_f_c_d_external_reference.html#dc5ff1334d1cbc5b60b3bda47de0b8ff">00063</a>     <span class="keyword">inline</span> <span class="keywordtype">void</span> SetEntityType(<a class="code" href="class_f_c_d_entity.html#9301a4bd5f4d4190ec13e40db4effdd7">FCDEntity::Type</a> type) { entityType = type; }
58<a name="l00064"></a>00064
59<a name="l00068"></a><a class="code" href="class_f_c_d_external_reference.html#af2ab4ec0e90f5e44be1c8d153a4c060">00068</a>     <span class="keyword">inline</span> <span class="keyword">const</span> FUUri&amp; GetUri()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> uri; }
60<a name="l00069"></a>00069
61<a name="l00073"></a><a class="code" href="class_f_c_d_external_reference.html#d0f5cafa16bc46a701b9906622bd11cc">00073</a>     <span class="keyword">inline</span> <span class="keywordtype">void</span> SetUri(<span class="keyword">const</span> FUUri&amp; _uri) { uri = _uri; }
62<a name="l00074"></a>00074
63<a name="l00077"></a><a class="code" href="class_f_c_d_external_reference.html#d5e834b4b1d2e0718db0aa1cae4e606a">00077</a>     <span class="keyword">inline</span> <span class="keyword">const</span> fstring&amp; GetFilename()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> uri.prefix; }
64<a name="l00078"></a>00078
65<a name="l00081"></a>00081 <span class="keywordtype">void</span> SetFilename(<span class="keyword">const</span> fchar* filename);
66<a name="l00082"></a><a class="code" href="class_f_c_d_external_reference.html#aba23360ca5534467b353fb6be68bac4">00082</a>     <span class="keyword">inline</span> <span class="keywordtype">void</span> SetFilename(<span class="keyword">const</span> fstring&amp; filename) { SetFilename(filename.c_str()); }
67<a name="l00086"></a><a class="code" href="class_f_c_d_external_reference.html#60e2d0b5632f7a8d4bfb22e6ec91e26b">00086</a>     <span class="keyword">inline</span> fstring GetObjectId()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code" href="_f_u_string_8h.html#07704e1457df8a52db49b436f419d9f9">TO_FSTRING</a>(uri.suffix); }
68<a name="l00087"></a>00087
69<a name="l00090"></a><a class="code" href="class_f_c_d_external_reference.html#eafa4a677f96d21c4db7f9475c688de6">00090</a>     <span class="keyword">inline</span> <span class="keywordtype">void</span> SetObjectId(<span class="keyword">const</span> fchar* daeId) { uri.suffix = <a class="code" href="_f_u_string_8h.html#bbdf4f5bce6b0fed7d6a617fab284e7b">TO_STRING</a>(daeId); }
70<a name="l00091"></a><a class="code" href="class_f_c_d_external_reference.html#45efc93d2b270d7c7e460bca1d48c5c6">00091</a>     <span class="keyword">inline</span> <span class="keywordtype">void</span> SetObjectId(<span class="keyword">const</span> fstring&amp; daeId) { uri.suffix = <a class="code" href="_f_u_string_8h.html#bbdf4f5bce6b0fed7d6a617fab284e7b">TO_STRING</a>(daeId); }
71<a name="l00096"></a>00096 <span class="keyword">virtual</span> xmlNode* <a class="code" href="class_f_c_d_entity_instance.html#a67ca9dc1db615c0cec9f3879015e453">WriteToXML</a>(xmlNode* parentNode) <span class="keyword">const</span>;
72<a name="l00097"></a>00097 };
73<a name="l00098"></a>00098
74<a name="l00099"></a>00099 <span class="preprocessor">#endif // _FCD_XREF_ENTITY_H_</span>
75</pre></div><hr size="1"><address style="align: right;"><small>Generated on Fri May 12 16:44:38 2006 for FCollada by&nbsp;
76<a href="http://www.doxygen.org/index.html">
77<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.6-NO </small></address>
78</body>
79</html>
Note: See TracBrowser for help on using the repository browser.