HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DD_ChoiceList.h
Go to the documentation of this file.
1 /*
2  * PROPRIETARY INFORMATION. This software is proprietary to
3  * Side Effects Software Inc., and is not to be reproduced,
4  * transmitted, or disclosed in any way without written permission.
5  *
6  * NAME: DD_ChoiceList.h ( DD Library, C++)
7  *
8  * COMMENTS: Contains a list of all the drag/drop choices.
9  */
10 
11 #ifndef __DD_ChoiceList__
12 #define __DD_ChoiceList__
13 
14 #include "DD_API.h"
15 #include <UT/UT_StringArray.h>
16 
18 {
19 public:
20  void clear();
21  void addChoice(const char *token,
22  const char *label,
23  const char *help);
24 
25  int entries() const { return myTokens.entries(); }
26  const char *getToken(int i) const { return myTokens(i); }
27  const char *getLabel(int i) const { return myLabels(i); }
28  const char *getHelp(int i) const { return myHelp(i); }
29 
30 private:
31  UT_StringArray myTokens, myLabels, myHelp;
32 };
33 
34 #endif
35 
GLuint GLsizei const GLchar * label
Definition: glcorearb.h:2545
const char * getHelp(int i) const
Definition: DD_ChoiceList.h:28
std::string help(const App *app, const Error &e)
Printout the full help string on error (if this fn is set, the old default for CLI11) ...
Definition: CLI11.h:8978
int entries() const
Definition: DD_ChoiceList.h:25
#define DD_API
Definition: DD_API.h:10
const char * getToken(int i) const
Definition: DD_ChoiceList.h:26
const char * getLabel(int i) const
Definition: DD_ChoiceList.h:27