HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
pluginDesc.h
Go to the documentation of this file.
1 //
2 // Copyright 2016 Pixar
3 //
4 // Licensed under the terms set forth in the LICENSE.txt file available at
5 // https://openusd.org/license.
6 //
7 #ifndef PXR_IMAGING_HF_PLUGIN_DESC_H
8 #define PXR_IMAGING_HF_PLUGIN_DESC_H
9 
10 #include "pxr/pxr.h"
11 #include "pxr/base/tf/token.h"
12 
13 #include <vector>
14 
16 
17 
18 ///
19 /// Common structure used to report registered plugins in one of the plugin
20 /// registries. The id token is used for internal api communication
21 /// about the name of the plugin.
22 /// displayName is a human readable name given to the plugin intended
23 /// to be used in menus.
24 /// priority is used to provide an ordering of plugins. The plugin
25 /// with the highest priority is determined to be the default (unless
26 /// overridden by the application). In the event of a tie
27 /// the string version of id is used to sort alphabetically ('a' has priority
28 /// over 'b').
29 ///
30 struct HfPluginDesc {
32  std::string displayName;
33  int priority;
34 };
35 
36 typedef std::vector<HfPluginDesc> HfPluginDescVector;
37 
38 
40 
41 #endif // PXR_IMAGING_HF_PLUGIN_DESC_H
std::string displayName
Definition: pluginDesc.h:32
Definition: token.h:70
PXR_NAMESPACE_CLOSE_SCOPE PXR_NAMESPACE_OPEN_SCOPE
Definition: path.h:1425
#define PXR_NAMESPACE_CLOSE_SCOPE
Definition: pxr.h:74
std::vector< HfPluginDesc > HfPluginDescVector
Definition: pluginDesc.h:36
TfToken id
Definition: pluginDesc.h:31