Salome HOME
ENV: Windows porting.
[modules/kernel.git] / src / SALOMEDS / SALOMEDS_AttributeComment_i.cxx
1 //  File   : SALOMEDS_AttributeComment_i.cxx
2 //  Author : Sergey RUIN
3 //  Module : SALOME
4
5
6 #include "SALOMEDS_AttributeComment_i.hxx"
7
8 #include <TCollection_ExtendedString.hxx>
9 #include "SALOMEDS_SObject_i.hxx"
10 #include "SALOMEDS.hxx"
11
12 using namespace std;
13
14 char* SALOMEDS_AttributeComment_i::Value()
15 {
16   SALOMEDS::Locker lock;
17   
18   CORBA::String_var c_s =
19     CORBA::string_dup(TCollection_AsciiString(Handle(SALOMEDSImpl_AttributeComment)::DownCast(_impl)->Value()).ToCString());
20   return c_s._retn();
21 }
22
23 void SALOMEDS_AttributeComment_i::SetValue(const char* value) 
24 {
25   SALOMEDS::Locker lock; 
26
27   CheckLocked();
28   TCollection_AsciiString aStr((char*)value);
29   Handle(SALOMEDSImpl_AttributeComment)::DownCast(_impl)->SetValue(TCollection_ExtendedString(aStr));
30 }