7fd59977 |
1 | #include <MDataStd_NameStorageDriver.ixx> |
2 | #include <PDataStd_Name.hxx> |
3 | #include <TDataStd_Name.hxx> |
4 | #include <TCollection_ExtendedString.hxx> |
5 | #include <PCollection_HExtendedString.hxx> |
6 | #include <CDM_MessageDriver.hxx> |
7 | |
8 | #define BUGOCC425 |
9 | |
10 | MDataStd_NameStorageDriver::MDataStd_NameStorageDriver(const Handle(CDM_MessageDriver)& theMsgDriver):MDF_ASDriver(theMsgDriver) |
11 | { |
12 | } |
13 | |
14 | Standard_Integer MDataStd_NameStorageDriver::VersionNumber() const |
15 | { return 0; } |
16 | |
17 | Handle(Standard_Type) MDataStd_NameStorageDriver::SourceType() const |
18 | { return STANDARD_TYPE(TDataStd_Name);} |
19 | |
20 | Handle(PDF_Attribute) MDataStd_NameStorageDriver::NewEmpty() const |
21 | { return new PDataStd_Name; } |
22 | |
23 | void MDataStd_NameStorageDriver::Paste(const Handle(TDF_Attribute)& Source,const Handle(PDF_Attribute)& Target,const Handle(MDF_SRelocationTable)& ) const |
24 | { |
25 | Handle(TDataStd_Name) S = Handle(TDataStd_Name)::DownCast (Source); |
26 | Handle(PDataStd_Name) T = Handle(PDataStd_Name)::DownCast (Target); |
27 | #ifdef BUGOCC425 |
28 | if(S->Get().Length() != 0) { |
29 | #endif |
30 | Handle(PCollection_HExtendedString) Name = new PCollection_HExtendedString (S->Get()); |
31 | T->Set (Name); |
32 | #ifdef BUGOCC425 |
33 | } |
34 | #endif |
35 | } |
36 | |