HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
UN_ParmType.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: UN_ParmType.h ( UN Library, C++)
7  *
8  * COMMENTS:
9  *
10  */
11 
12 #ifndef __UN_ParmType_h__
13 #define __UN_ParmType_h__
14 
15 #include "UN_API.h"
16 #include <UT/UT_NonCopyable.h>
17 #include <UT/UT_StringArray.h>
18 #include <UT/UT_StringMap.h>
19 #include <UT/UT_UniquePtr.h>
20 
21 
22 // ============================================================================
23 /// The parm type is a characteristics of a parm that dertermines
24 /// the look in the GUI as well as the APIs for setting and getting its value.
25 ///
27 {
28 public:
29  /// @{ Constructor and destructor
30  UN_ParmType( const UT_StringRef &parm_type_name );
31  ~UN_ParmType();
33  /// @}
34 
35  /// Returns the name of the parm type.
36  const UT_StringHolder & name() const
37  { return myName; }
38 
39  /// Returns true if this node type has a valid name.
40  bool hasValidName() const;
41 
42 private:
43  /// The name of the parm type.
44  UT_StringHolder myName;
45 };
46 
47 /// A handle to the parm type object, for expressing the ownership.
49 
50 #endif
51 
UT_UniquePtr< UN_ParmType > UN_ParmTypeHandle
A handle to the parm type object, for expressing the ownership.
Definition: UN_ParmType.h:48
#define UN_API
Definition: UN_API.h:11
std::unique_ptr< T, Deleter > UT_UniquePtr
A smart pointer for unique ownership of dynamically allocated objects.
Definition: UT_UniquePtr.h:39
#define UT_NON_COPYABLE(CLASS)
Define deleted copy constructor and assignment operator inside a class.
GLuint const GLchar * name
Definition: glcorearb.h:786