AnyCAD C++ API  2018
 全部  命名空间 文件 函数 变量 类型定义 枚举 枚举值 友元 宏定义 
APIElementSchema.h
浏览该文件的文档.
1 //Public API. Powered by AnyCAD.
2 
3 #ifndef _APIElementSchema_H_
4 #define _APIElementSchema_H_
5 
6 #include "APIObjectDef.h"
7 
8 #include "APIObject.h"
9 
10 namespace AnyCAD{ namespace API
11 {
12  class ParameterValue;
13  class PropertiesElement;
14  class PropertySchema;
23  : public Object
24  {
26  public:
31  String GetName () const;
36  void SetName (const String& val) ;
41  String GetDescription () const;
46  void SetDescription (const String& val) ;
51  void AddProperty (const PropertySchema& schema) ;
59  PropertySchema AddProperty (const String& paramId, const String& uiName, const ParameterValue& defaultValue) ;
65  PropertySchema FindProperty (const String& paramId) const;
70  bool Apply (const PropertiesElement& element) ;
71  };//ElementSchema;
72 }}//API
73 
74 #endif //_APIElementSchema_H_
#define AnyPlatformAPI_API
Definition: AnyPlatformAPI.h:8
Support user defined parameters and script.
Definition: APIPropertiesElement.h:23
std::string String
Definition: APIString.h:10
The Schema description for parameters.
Definition: APIPropertySchema.h:21
The base class for parameter values.
Definition: APIParameterValue.h:19
平台基类
Definition: APIObject.h:17
#define DECLARE_APISUPER(className, super)
Definition: APIObjectDef.h:33
The Schema description for element.
Definition: APIElementSchema.h:22