00001 /*00002 * Copyright 2006 Sony Computer Entertainment Inc.00003 *00004 * Licensed under the MIT Open Source License, for details please see license.txt or the website00005 * http://www.opensource.org/licenses/mit-license.php00006 *00007 */00008
00009 #ifndef __DAE_RAWRESOLVER_H__00010 #define __DAE_RAWRESOLVER_H__00011
00012 #include <string>00013 #include <map>00014 #include <dae/daeURI.h>00015 class DAE;
00016
00021class DLLSPECdaeRawResolver : publicdaeURIResolver00022 {
00023 public:
00027 daeRawResolver(DAE& dae);
00031 ~daeRawResolver();
00032
00033 public: // Abstract Interface00034 virtualdaeElement* resolveElement(constdaeURI& uri);
00035 virtualdaeStringgetName();
00036 };
00037
00038 // A simple class to make speed up the process of resolving a .raw URI.00039 // The result of the resolve is cached for future use.00040 // This is meant for DOM internal use only.00041class DLLSPECdaeRawRefCache {
00042 public:
00043 daeElement* lookup(constdaeURI& uri);
00044 void add(constdaeURI& uri, daeElement* elt);
00045 voidremove(constdaeURI& uri);
00046 void clear();
00047
00048 private:
00049 std::map<std::string, daeElement*> lookupTable;
00050 };
00051
00052 #endif
colladadom
Author(s): Du Hung Hou, Khronos.org, Marcus Barnes, Greg Corson, Herbert Law, Sebastian Schwarz, Steven Thomas, John Hsu (ros package), Tim Field (ros package)
autogenerated on Fri Jan 11 09:24:25 2013