Salome HOME
Cover debug information with _DEBUG definition.
authornds <nds@opencascade.com>
Mon, 12 Dec 2016 10:30:56 +0000 (13:30 +0300)
committernds <nds@opencascade.com>
Mon, 12 Dec 2016 10:30:56 +0000 (13:30 +0300)
src/ModelGeomAlgo/ModelGeomAlgo_Point2D.cpp
src/ModelGeomAlgo/ModelGeomAlgo_Point2D.h
src/ModuleBase/ModuleBase_Tools.cpp
src/ModuleBase/ModuleBase_Tools.h
src/PartSet/PartSet_OverconstraintListener.cpp
src/PartSet/PartSet_OverconstraintListener.h
src/SketchPlugin/SketchPlugin_ConstraintSplit.cpp
src/SketchPlugin/SketchPlugin_ConstraintSplit.h
src/XGUI/XGUI_Displayer.cpp
src/XGUI/XGUI_Displayer.h

index 0ee9df16eb88099f48d7db718381ed19f1f2e93c..f9fa6030de2a65e6ce75afe4a8b6e59ed1f7ce19 100755 (executable)
@@ -175,6 +175,7 @@ namespace ModelGeomAlgo_Point2D {
     return aValueStr;
   }
 
+#ifdef _DEBUG
   std::string getPontAttributesInfo(const std::shared_ptr<ModelAPI_Feature>& theFeature,
                            const std::set<std::shared_ptr<ModelAPI_Attribute> >& theAttributesOnly)
   {
@@ -214,5 +215,5 @@ namespace ModelGeomAlgo_Point2D {
 
     return anInfo;
   }
-
+#endif
 } // namespace ModelGeomAlgo_Point2D
index ab445624beba7257442321ec6124312bb6ce80c8..d8fd556c4bae435178767250e4537747a3d11a56 100755 (executable)
@@ -82,6 +82,7 @@ namespace ModelGeomAlgo_Point2D {
                                           const std::shared_ptr<GeomAPI_Pnt>& thePoint,
                                           std::shared_ptr<GeomAPI_Pnt>& theProjectedPoint);
 
+#ifdef _DEBUG
   /// Return feature name, kind and point values united in a string info
   /// \param theFeature an investigated feature
   /// \param theAttributesOnly a container of necessary attributes, if empty, all
@@ -96,6 +97,7 @@ namespace ModelGeomAlgo_Point2D {
   MODELGEOMALGO_EXPORT std::string getPointAttributeInfo(
                                   const std::shared_ptr<ModelAPI_Attribute>& theAttribute);
 
+#endif
 }
 
 #endif
index 0114238db64c52e8c18e35f2d88954a3a2bb71e3..8a671f0bbf123fbfd3b78701c1a076da78ba1ebc 100755 (executable)
@@ -266,6 +266,7 @@ QAction* createAction(const QIcon& theIcon, const QString& theText,
   return anAction;
 }
 
+#ifdef _DEBUG
 QString objectInfo(const ObjectPtr& theObj, const bool isUseAttributesInfo)
 {
   QString aFeatureStr = "feature";
@@ -309,6 +310,7 @@ QString objectInfo(const ObjectPtr& theObj, const bool isUseAttributesInfo)
 
   return aFeatureStr;
 }
+#endif
 
 typedef QMap<QString, int> ShapeTypes;
 static ShapeTypes myShapeTypes;
index fedc9d206f91da115ae12c291468ef59a4fc6db2..5b4610878a9583fafece39a7864369c4ccd770fc 100755 (executable)
@@ -133,14 +133,14 @@ MODULEBASE_EXPORT QAction* createAction(const QIcon& theIcon, const QString& the
                                         const QString& theToolTip = QString(),
                                         const QString& theStatusTip = QString());
 
-//#ifdef _DEBUG
+#ifdef _DEBUG
 /// Converts the object to the feature or a result and generate information string
 /// \param theObj an object
 /// \param isUseAttributesInfo a flag whether the attribute values information is used
 /// \return a string
 MODULEBASE_EXPORT QString objectInfo(const ObjectPtr& theObj,
                                      const bool isUseAttributesInfo = false);
-//#endif
+#endif
 
 /// Converts string value (name of shape type) to shape enum value
 /// \param theType - string with shape type name
index ba05d9bd713a503b9dd67467d8a33a6ad173392c..0d8417d63b04a4bdb38308613e949b1fd7f2ebbe 100755 (executable)
@@ -170,6 +170,7 @@ XGUI_Workshop* PartSet_OverconstraintListener::workshop() const
   return aConnector->workshop();
 }
 
+#ifdef _DEBUG
 QString PartSet_OverconstraintListener::getObjectsInfo(const std::set<ObjectPtr>& theObjects)
 {
   std::set<ObjectPtr>::const_iterator anIt = theObjects.begin(),
@@ -180,3 +181,4 @@ QString PartSet_OverconstraintListener::getObjectsInfo(const std::set<ObjectPtr>
 
   return anInfo.join(";\n");
 }
+#endif
index dd7df2002115bdeda9b4dc3097975b38b3cfe283..1f0e8f01c7ca3347c5fe5fcc49393dce4819e72d 100755 (executable)
@@ -69,10 +69,12 @@ private:
   /// Returns workshop
   XGUI_Workshop* workshop() const;
 
+#ifdef _DEBUG
   /// Unite objects in one string information
   /// \param theObjects a list of objects
   /// \return a string info
   static QString getObjectsInfo(const std::set<ObjectPtr>& theObjects);
+#endif
 
 private:
   std::set<ObjectPtr> myConflictingObjects;
index e0b26898bc8ebb42c65038ce39a6bc2cf40341e6..ccf819ab626e340bb18825946e1a40a6387a9e3d 100755 (executable)
@@ -1304,7 +1304,7 @@ std::set<std::shared_ptr<ModelAPI_Attribute> > SketchPlugin_ConstraintSplit::get
   return anAttributes;
 }
 
-
+#ifdef _DEBUG
 std::string SketchPlugin_ConstraintSplit::getFeatureInfo(
                                                const std::shared_ptr<ModelAPI_Feature>& theFeature,
                                                const bool isUseAttributesInfo)
@@ -1365,4 +1365,4 @@ std::string SketchPlugin_ConstraintSplit::getFeatureInfo(
   }
   return anInfo;
 }
-
+#endif
index b6c13e3e1b03fab300d7f6a93cef84df0c85d039..bf5fcc2dd402560d24a6b0fd1648e29a50cae51b 100755 (executable)
@@ -282,11 +282,13 @@ private:
   std::set<std::shared_ptr<ModelAPI_Attribute> > getEdgeAttributes(
                                     const std::shared_ptr<ModelAPI_Feature>& theFeature);
 
+#ifdef _DEBUG
   /// Return feature name, kind, point attribute values united in a string
   /// \param theFeature an investigated feature
   /// \return string value
   std::string getFeatureInfo(const std::shared_ptr<ModelAPI_Feature>& theFeature,
                              const bool isUseAttributesInfo = true);
+#endif
 };
 
 #endif
index d7f38e04d5b231e113c7293729dc8ffc641f82a5..a6063a2d3eebf13dd516c990d1832f4bdfc19a25 100644 (file)
@@ -1419,6 +1419,7 @@ void XGUI_Displayer::appendResultObject(ObjectPtr theObject, AISObjectPtr theAIS
 #endif
 }
 
+#ifdef _DEBUG
 std::string XGUI_Displayer::getResult2AISObjectMapInfo() const
 {
   QStringList aContent;
@@ -1434,6 +1435,7 @@ std::string XGUI_Displayer::getResult2AISObjectMapInfo() const
   return QString("myResult2AISObjectMap: size = %1\n%2\n").arg(myResult2AISObjectMap.size()).
                                             arg(aContent.join("\n")).toStdString().c_str();
 }
+#endif
 
 void XGUI_Displayer::getPresentations(const ObjectPtr& theObject,
                                   NCollection_Map<Handle(AIS_InteractiveObject)>& thePresentations)
index 8ff49c78bbcda81b8769fce5b1b1238b2c983f13..2325de48b75d07e78a7213b001c6f7ef69966357 100644 (file)
@@ -335,9 +335,11 @@ private:
   /// \param theAIS AIOS object to display
   void appendResultObject(ObjectPtr theObject, AISObjectPtr theAIS);
 
+#ifdef _DEBUG
   /// Returns an information about alredy displayed objects
   /// \return a string representation
   std::string getResult2AISObjectMapInfo() const;
+#endif
 
   /// Returns container of visible presentations for the object. For a feature object,
   /// the feature results are processed also. The presentations map is not cleared inside.