xref.h

Go to the documentation of this file.
00001 //**************************************************************************/
00002 
00003 // Copyright (c) 2009 Autodesk, Inc.
00004 
00005 // All rights reserved.
00006 
00007 //
00008 
00009 // Use of this software is subject to the terms of the Autodesk license
00010 
00011 // agreement provided at the time of installation or download, or which
00012 
00013 // otherwise accompanies this software in either electronic or hard copy form.
00014 
00015 //
00016 
00017 //**************************************************************************/
00018 
00019 // DESCRIPTION:
00020 
00021 // CREATED: December 2009
00022 
00023 //**************************************************************************/
00024 
00025 namespace mudbox {
00026 
00027 
00028 
00030 
00032 
00034 
00035 class MBDLL_DECL XRef : public Node
00036 
00037 {
00038 
00039     DECLARE_CLASS;
00040 
00041 public:
00042     
00046     void AddAbsoluteUrl( 
00047         QString sAbsoluteUrl 
00048         );
00049 
00055     QString ResolveUrl( 
00056         const QString& sRelativeUrl 
00057         ) const;
00058 
00062     QStringList ResolveUrls(
00063         const QString& sRelativeUrl 
00064         ) const;
00065 
00085     QFileInfoList ResolveUrls( 
00086         const QString& sRelativeUrl, 
00087         const QString& sNameFilter, 
00088         QDir::Filters eTypeFilters = QDir::Files 
00089         ) const;
00090 
00091 protected:
00092 
00093     virtual ~XRef();
00094 
00095 
00096 
00097     QVector< QFileInfo > m_aAbsPaths;
00098 
00099 };
00100 
00101 
00102 
00103 }; // end of namespace mudbox
00104