MantisBT
Mantis Bug Tracker Workflow

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0025681Community[OCCT] OCCT:Application Frameworkpublic2014-12-31 17:592017-07-27 09:43
ReporterVico Liang 
Assigned Tovro 
PrioritylowSeverityfeature 
StatusassignedResolutionopen 
PlatformOSOS Version
Product Version 
Target Version[OCCT] 7.4.0*Fixed in Version 
Summary0025681: Unicode data storage in XML or binary format.
DescriptionIt's impossible to save and then restore Unicode data into XML or Binary format document before OCCT6.8.0. The Unicode presentation is TCollection_ExtendedString, so the changes might be updating TCollection_ExtendedString storage and retrieve drivers.
TagsNo tags attached.
Test case number
Attached Files

- Relationships

-  Notes
(0050516)
vro (developer)
2016-02-09 11:58

Hello Vico. A unicode string may be saved in XML or binaries file formats of OCAF document. See please XmlMDataStd_NameDriver and BinMDataStd_NameDriver, for example. These drivers exist since a very early version of Open CASCADE (much earlier than 6.8.0).
(0052597)
Vico Liang (developer)
2016-04-12 11:40

Dear vro,

I'm using class TCollection_ExtendedString in my applicaton, and i don't want to use class TDataStd_Name since TDataStd_Name is just for naming purpose in my application. I see there is driver for TDataStd_Name.

Now my problem is that i want to store TCollection_ExtendedString in xml or binary. TCollection_ExtendedString is a basis data type of OCCT, i think it should provide an attribute and for it (like TDataStd_ExtendedString) and then provide drivers.
(0052699)
vro (developer)
2016-04-14 09:17

I understand your desire and might propose the following:
1. You might use TDataStd_Comment - it keeps a unicode string too and it is very similar to TDataStd_Name.
2. Open CASCADE is an open source library. You might develop a TDataStd_ExtendedString attribute yourself with persistent-transient drivers for XML and Binary file formats. What do you think?
Any questions are welcome!
(0052701)
Vico Liang (developer)
2016-04-14 11:00

Dear vro,

Though TDataStd_Comment can store unicode string, it have its own application semantics, and it should just be used for comment rather than as a common string.

Yes, Open CASCADE is an open source library. OCCT is becoming better and better. So the reason i report this is just to want to make occt better. I just reminder that OCCT need an attribute TDataStd_ExtendedString.
(0052702)
Vico Liang (developer)
2016-04-14 11:05

I'm curious, why there is TDataStd_AsciiString, but without TDataStd_ExtendedString? It's so nature to provice attributes for these two kinds of string.
(0052709)
vro (developer)
2016-04-14 12:02

I think it is a good idea to make a new attribute and extend OCAF. So, you are welcome with your contribution to Open CASCADE!
(0052712)
Vico Liang (developer)
2016-04-14 13:43

Dear vro, You made a right desision to make a new attribute to extend OCAF. The implementation should be better done from OCCT team.
(0052714)
vro (developer)
2016-04-14 14:10

You are welcome to contact our sales or consulting departments please at http://www.opencascade.com. [^]

- Issue History
Date Modified Username Field Change
2014-12-31 17:59 Vico Liang New Issue
2014-12-31 17:59 Vico Liang Assigned To => szy
2015-03-05 11:25 szy Priority normal => low
2015-03-05 11:25 szy Target Version 6.9.0 => 6.7.1
2015-03-05 11:40 szy Target Version 6.7.1 => 7.1.0
2015-12-30 16:05 szy Assigned To szy => vro
2015-12-30 16:05 szy Status new => assigned
2016-02-09 11:58 vro Note Added: 0050516
2016-02-09 11:59 vro Assigned To vro => Vico Liang
2016-02-25 14:19 vro Status assigned => feedback
2016-04-12 11:40 Vico Liang Note Added: 0052597
2016-04-12 11:40 Vico Liang Assigned To Vico Liang => vro
2016-04-13 05:04 Vico Liang Status feedback => assigned
2016-04-14 09:17 vro Note Added: 0052699
2016-04-14 11:00 Vico Liang Note Added: 0052701
2016-04-14 11:05 Vico Liang Note Added: 0052702
2016-04-14 12:02 vro Note Added: 0052709
2016-04-14 13:43 Vico Liang Note Added: 0052712
2016-04-14 14:10 vro Note Added: 0052714
2016-11-03 17:21 abv Target Version 7.1.0 => 7.2.0
2017-07-27 09:43 abv Target Version 7.2.0 => 7.4.0*


Copyright © 2000 - 2018 MantisBT Team
Powered by Mantis Bugtracker