# Plugin headers dependency
INCLUDE_DIRECTORIES(
+ # TODO(spo): modify ConstructionPlugin headers to remove dependency on GeomAPI headers
${PROJECT_SOURCE_DIR}/src/GeomAPI
${PROJECT_SOURCE_DIR}/src/ConstructionPlugin
)
{
public:
/// Constructor for double
- MODELHIGHAPI_EXPORT ModelHighAPI_Double(double theValue = 0.);
+ MODELHIGHAPI_EXPORT
+ ModelHighAPI_Double(double theValue = 0.);
/// Constructor for std::string
- MODELHIGHAPI_EXPORT ModelHighAPI_Double(const std::string & theValue);
+ MODELHIGHAPI_EXPORT
+ ModelHighAPI_Double(const std::string & theValue);
/// Constructor for char *
- MODELHIGHAPI_EXPORT ModelHighAPI_Double(const char * theValue);
+ MODELHIGHAPI_EXPORT
+ ModelHighAPI_Double(const char * theValue);
/// Destructor
- MODELHIGHAPI_EXPORT virtual ~ModelHighAPI_Double();
+ MODELHIGHAPI_EXPORT
+ virtual ~ModelHighAPI_Double();
/// Fill attribute values
- MODELHIGHAPI_EXPORT virtual void fillAttribute(std::shared_ptr<ModelAPI_AttributeDouble> & theAttribute) const;
+ MODELHIGHAPI_EXPORT
+ virtual void fillAttribute(std::shared_ptr<ModelAPI_AttributeDouble> & theAttribute) const;
private:
boost::variant<double, std::string> myValue;
{
public:
/// Constructor
- MODELHIGHAPI_EXPORT explicit ModelHighAPI_Interface(const std::shared_ptr<ModelAPI_Feature> & theFeature);
+ MODELHIGHAPI_EXPORT
+ explicit ModelHighAPI_Interface(const std::shared_ptr<ModelAPI_Feature> & theFeature);
/// Destructor
- MODELHIGHAPI_EXPORT virtual ~ModelHighAPI_Interface();
+ MODELHIGHAPI_EXPORT
+ virtual ~ModelHighAPI_Interface();
/// Return ModelAPI_Feature
- MODELHIGHAPI_EXPORT std::shared_ptr<ModelAPI_Feature> feature() const;
+ MODELHIGHAPI_EXPORT
+ std::shared_ptr<ModelAPI_Feature> feature() const;
/// Shortcut for feature()->getKind()
- MODELHIGHAPI_EXPORT const std::string& getKind();
+ MODELHIGHAPI_EXPORT
+ const std::string& getKind();
/// Shortcut for feature()->execute()
- MODELHIGHAPI_EXPORT void execute();
+ MODELHIGHAPI_EXPORT
+ void execute();
/// Throw exception to event loop
- MODELHIGHAPI_EXPORT void throwException(const std::string & theDescription);
+ MODELHIGHAPI_EXPORT
+ void throwException(const std::string & theDescription);
protected:
std::shared_ptr<ModelAPI_Feature> myFeature;
}
+//--------------------------------------------------------------------------------------
+#define INTERFACE_1(KIND, \
+ N_0, AN_0, T_0, C_0) \
+ public: \
+ INTERFACE_COMMON(KIND) \
+ DEFINE_ATTRIBUTE(N_0, T_0, C_0) \
+ protected: \
+ START_INIT() \
+ SET_ATTRIBUTE(N_0, T_0, AN_0) \
+ END_INIT() \
+ public:
+
//--------------------------------------------------------------------------------------
#define INTERFACE_2(KIND, \
N_0, AN_0, T_0, C_0, \