Salome HOME
Initial support of publication of shapes
[modules/shaper_study.git] / src / StudyData / StudyData_Object.cpp
index 31e466802c4e9ba7afba6096194e7165a2cfa39b..13e22ddcb389213986aabb675ac4e02289528c81 100644 (file)
 #include <BRep_Builder.hxx>
 #include <BRepTools.hxx>
 
-StudyData_Object::StudyData_Object(SALOMEDS::TMPFile_var theFile)
+StudyData_Object::StudyData_Object(const std::string theFile)
 {
-  int sizebuf = theFile->length();
-  char* aBuf;
-  aBuf = (char*)&theFile[0];
-  std::istringstream streamBrep(aBuf);
+  std::istringstream streamBrep(theFile.c_str());
   BRep_Builder aBuilder;
   BRepTools::Read(myShape, streamBrep, aBuilder);
 }