// perform shape writing
if( ICW.AddShape( theShape->impl<TopoDS_Shape>() ) ) {
ICW.ComputeModel();
- return ICW.Write(theFileName.c_str());
+ return ICW.Write(theFileName.c_str()) == Standard_True;
}
return false;
}
namespace GeomAlgoAPI_Tools {
-class GEOMALGOAPI_EXPORT Localizer
+class Localizer
{
public:
- Localizer();
- ~Localizer();
+ GEOMALGOAPI_EXPORT Localizer();
+ GEOMALGOAPI_EXPORT ~Localizer();
private:
std::string myCurLocale;
};
#include <string>
-#ifdef WNT // to avoid too long decorated name warning
-#pragma warning( disable : 4503 )
-#endif
-
// myLab contains:
// TDataStd_Name - name of the object
// TDataStd_IntegerArray - state of the object execution, transaction ID of update
#ifndef ModelAPI_Data_H_
#define ModelAPI_Data_H_
+#ifdef _WINDOWS // to avoid too long decorated name warning
+#pragma warning( disable : 4503 )
+#endif
+
#include "ModelAPI.h"
#include <string>
#include <list>
class ParametersPlugin_Parameter;
class ParametersPlugin_PyInterp;
-class PARAMETERSPLUGIN_EXPORT ParametersPlugin_EvalListener : public Events_Listener
+class ParametersPlugin_EvalListener : public Events_Listener
{
public:
- ParametersPlugin_EvalListener();
- virtual ~ParametersPlugin_EvalListener();
+ PARAMETERSPLUGIN_EXPORT ParametersPlugin_EvalListener();
+ PARAMETERSPLUGIN_EXPORT virtual ~ParametersPlugin_EvalListener();
- virtual void processEvent(const std::shared_ptr<Events_Message>& theMessage);
+ PARAMETERSPLUGIN_EXPORT virtual void processEvent(const std::shared_ptr<Events_Message>& theMessage);
protected:
double evaluate(const std::string& theExpression, std::string& theError,
/**\class ParametersPlugin_Plugin
* TODO: Add documentation
*/
-class PARAMETERSPLUGIN_EXPORT ParametersPlugin_Plugin : public ModelAPI_Plugin
+class ParametersPlugin_Plugin : public ModelAPI_Plugin
{
public:
/// Creates the feature object of this plugin by the feature string ID
- virtual FeaturePtr createFeature(std::string theFeatureID);
+ PARAMETERSPLUGIN_EXPORT virtual FeaturePtr createFeature(std::string theFeatureID);
public:
ParametersPlugin_Plugin();
aMgr->deleteConstraint(this);
}
-
+#ifdef _WINDOWS
+#pragma warning( disable : 4996 )
+#endif
Handle(Image_AlienPixMap) SketcherPrs_SymbolPrs::icon()
{