VR-Forces 4.1 Class Documentation
DtFileExtensionManager.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2011 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 /******************************************************************************
6 ** $RCSfile: DtFileExtensionManager.h,v $ $Revision: 1.7 $ $State: Exp $
7 ******************************************************************************/
8 
12 
13 #pragma once
14 
15 #include <vrvCore/vrvCore.h>
16 
17 #include <vrvUtil/DtUnicode.h>
19 
20 #include <boost/unordered_map.hpp>
21 
22 #include <string>
23 #include <list>
24 
25 namespace makVrv
26 {
27  class DtDe;
28 
33  {
34 
35  public:
37  typedef std::list<std::string> ExtensionList;
38 
41  {
44  };
45 
48  typedef std::list<FileExtensionData> FileExtensionGroup;
49 
51  typedef boost::unordered_map<std::string, FileExtensionGroup> DialogTypeMap;
52 
54  static DtFileExtensionManager& instance(DtDe& de);
55 
57  virtual ~DtFileExtensionManager();
58 
61  virtual void addFileExtensions( const std::string& dialogType,
62  const DtUnicode& description, const ExtensionList& extensions );
63 
66  virtual void addFileExtension( const std::string& dialogType,
67  const DtUnicode& description, const std::string& extension );
68 
72  virtual void removeFileExtensions( const std::string& dialogType,
73  const ExtensionList& extensions );
74 
78  virtual void removeFileExtension( const std::string& dialogType,
79  const std::string& extension );
80 
83  virtual const FileExtensionGroup& getFileExtensions(
84  const std::string& dialogType ) const;
85 
86  protected:
87 
90 
91  virtual bool extensionListsMatch(const ExtensionList& extensions1,
92  const ExtensionList& extensions2 );
93 
94  protected:
95 
98  };
99 }

Document ID: Generated on Tue Jan 29 18:21:16 EST 2013 from SVN revision 123193
Copyright © 2005-2013 VT MÄK Inc. All Rights Reserved (www.mak.com)