DataDirector API
DDD_PluginMgr.h
Go to the documentation of this file.
1 /*! \file DDD_PluginMgr.h
2 
3  \brief Class for managing converter and asset plugins and adding them to the respective factories
4 
5  \par Copyright Information
6 
7  Copyright (c) 2012 The DiSTI Corporation.<br>
8  11301 Corporate Blvd; Suite 100<br>
9  Orlando, Florida 32817<br>
10  USA<br>
11  <br>
12  All rights reserved.<br>
13 
14  This Software contains proprietary trade secrets of DiSTI and may not be
15 reproduced, in whole or part, in any form, or by any means of electronic,
16 mechanical, or otherwise, without the written permission of DiSTI. Said
17 permission may be derived through the purchase of applicable DiSTI product
18 licenses which detail the distribution rights of this content and any
19 Derivative Works based on this or other copyrighted DiSTI Software.
20 
21  NO WARRANTY. THE SOFTWARE IS PROVIDED "AS-IS," WITHOUT WARRANTY OF ANY KIND,
22 AND ANY USE OF THIS SOFTWARE PRODUCT IS AT YOUR OWN RISK. TO THE MAXIMUM EXTENT
23 PERMITTED BY APPLICABLE LAW, DISTI AND ITS SUPPLIERS DISCLAIM ALL WARRANTIES
24 AND CONDITIONS, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
25 IMPLIED WARRANTIES AND CONDITIONS OF MERCHANTABILITY AND/OR FITNESS FOR A
26 PARTICULAR PURPOSE, TITLE, AND NON-INFRINGEMENT, WITH REGARD TO THE SOFTWARE.
27 
28  LIMITATION OF LIABILITY. TO THE MAXIMUM EXTENT PERMITTED BY APPLICABLE LAW,
29 IN NO EVENT SHALL DISTI OR ITS SUPPLIERS BE LIABLE FOR ANY SPECIAL, INCIDENTAL,
30 INDIRECT, OR CONSEQUENTIAL DAMAGES WHATSOEVER (INCLUDING, WITHOUT LIMITATION,
31 DAMAGES FOR LOSS OF BUSINESS PROFITS, BUSINESS INTERRUPTION, LOSS OF BUSINESS
32 INFORMATION, OR ANY OTHER PECUNIARY LOSS) ARISING OUT OF THE USE OF OR
33 INABILITY TO USE THE SOFTWARE, EVEN IF DISTI HAS BEEN ADVISED OF THE POSSIBLITY
34 OF SUCH DAMAGES. DISTI'S ENTIRE LIABILITY AND YOUR EXCLUSIVE REMEDY SHALL NOT
35 EXCEED FIVE DOLLARS (US$5.00).
36 
37  The aforementioned terms and restrictions are governed by the laws of the
38 State of Florida and the United States of America.
39 
40 */
41 
42 #ifndef DDD_PLUGIN_MGR_H
43 #define DDD_PLUGIN_MGR_H
44 
45 #include "DDD_Include.h"
46 #include "DDD_StringList.h"
47 #include <string>
48 
49 namespace disti
50 {
51 
52 class DDD_EXPORT DDD_PluginMgr
53 {
54 private:
55  /** Constructor. Private because the Singleton pattern is being used
56  */
57  DDD_PluginMgr();
58 
59  /** Destructor. Private because the Singleton pattern is being used
60  */
61  ~DDD_PluginMgr();
62 
63 public:
64 
65  /** Public interface to the singleton
66  * \return Returns a pointer to the singleton instance
67  */
68  static DDD_PluginMgr& Instance();
69 
70  /** Traverses the given path and adds any assets in the path to the asset factory
71  * This functionality is used in the editor to allow the editor to present a list
72  * of available asset types
73  * \param assetsPath The path containing assets to add to the factory
74  * \return True if assets were added to the factory
75  */
76  bool LoadAssets(const std::string& assetsPath);
77 
78  /** Traverses the given path and adds any converters in the path to the converter factory
79  * This functionality is used in the editor to allow the editor to present a list
80  * of available converter types. It is also needed at runtime to make converter plugins available
81  * \param convertersPath The path containing converters to add to the factory
82  * \return True if converters were added to the factory
83  */
84  bool LoadConverters(const std::string& convertersPath);
85 
86  /** \return Returns the list of asset types that have been added to the Asset Factory
87  */
88  DDD_StringList LoadedAssets();
89 
90  /** \return Returns the list of converter types that have been added to the Converter Factory
91  */
92  DDD_StringList LoadedConverters();
93 };
94 
95 } // end namespace disti
96 
97 
98 #endif
99 
A templated array of objects. The array dynamically resizes as needed.
Definition: dynamic_array.h:61
Definition: DDD_PluginMgr.h:52
Definition: AttributeChangedEmitter.h:46