Salome HOME
projects
/
modules
/
smesh.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix smesh/imps_09/K0
[modules/smesh.git]
/
src
/
SMESHUtils
/
SMESH_Comment.hxx
diff --git
a/src/SMESHUtils/SMESH_Comment.hxx
b/src/SMESHUtils/SMESH_Comment.hxx
index 5e6420fda11f1dfb98d2f34f4d9612c64475893b..a6b75f3b416b9f7d70b02fa984040034f769fea4 100644
(file)
--- a/
src/SMESHUtils/SMESH_Comment.hxx
+++ b/
src/SMESHUtils/SMESH_Comment.hxx
@@
-1,4
+1,4
@@
-// Copyright (C) 2007-201
5
CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2007-201
9
CEA/DEN, EDF R&D, OPEN CASCADE
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
@@
-17,7
+17,7
@@
// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
//
// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
//
-// SMESH SMESH : implementaion of SMESH idl descriptions
+// SMESH SMESH : implementa
t
ion of SMESH idl descriptions
// File : SMESH_Comment.hxx
// Created : Wed Mar 14 18:28:45 2007
// Author : Edward AGAPOV (eap)
// File : SMESH_Comment.hxx
// Created : Wed Mar 14 18:28:45 2007
// Author : Edward AGAPOV (eap)
@@
-30,46
+30,46
@@
# include <string>
# include <sstream>
# include <string>
# include <sstream>
-using namespace std;
-
/*!
* \brief Class to generate string from any type
*/
/*!
* \brief Class to generate string from any type
*/
-class SMESH_Comment : public string
+class SMESH_Comment : public st
d::st
ring
{
{
- ostringstream _s ;
+
std::
ostringstream _s ;
public :
public :
- SMESH_Comment():string("") {}
+ SMESH_Comment():st
d::st
ring("") {}
- SMESH_Comment(const SMESH_Comment& c):string() {
+ SMESH_Comment(const SMESH_Comment& c):st
d::st
ring() {
_s << c.c_str() ;
_s << c.c_str() ;
- this->string::operator=( _s.str() );
+ this->st
d::st
ring::operator=( _s.str() );
}
SMESH_Comment & operator=(const SMESH_Comment& c) {
_s << c.c_str() ;
}
SMESH_Comment & operator=(const SMESH_Comment& c) {
_s << c.c_str() ;
- this->string::operator=( _s.str() );
+ this->st
d::st
ring::operator=( _s.str() );
return *this;
}
template <class T>
SMESH_Comment( const T &anything ) {
_s << anything ;
return *this;
}
template <class T>
SMESH_Comment( const T &anything ) {
_s << anything ;
- this->string::operator=( _s.str() );
+ this->st
d::st
ring::operator=( _s.str() );
}
template <class T>
SMESH_Comment & operator<<( const T &anything ) {
_s << anything ;
}
template <class T>
SMESH_Comment & operator<<( const T &anything ) {
_s << anything ;
- this->string::operator=( _s.str() );
+ this->st
d::st
ring::operator=( _s.str() );
return *this ;
}
operator char*() const {
return (char*)c_str();
}
return *this ;
}
operator char*() const {
return (char*)c_str();
}
+
+ std::ostream& Stream() { return _s; }
};
};