Welcome to Telelogic Product Support
  Home Downloads Knowledgebase Case Tracking Licensing Help Telelogic Passport
Telelogic DOORS (steve huntington)
Decrease font size
Increase font size
Topic Title: DXL and Binary Files
Topic Summary:
Created On: 31-Aug-2004 07:03
Status: Post and Reply
Linear : Threading : Single : Branch
Search Topic Search Topic
Topic Tools Topic Tools
Quick Reply Quick Reply
Subscribe to this topic Subscribe to this topic
E-mail this topic to someone. E-mail this topic
Bookmark this topic Bookmark this topic
View similar topics View similar topics
View topic in raw text format. Print this topic.
 31-Aug-2004 07:03
User is offline View Users Profile Print this message


Paul Miller

Posts: 376
Joined: 2-Oct-2002

HI,

DXL supports writing to Binary files eg: Stream binaryFile = write binary "FileName.dat".

When using languages like C/C++ you can define a char as a hex number eg: char hex = 0x63

DOORS doesn't seem to support this, so how do I write binary to a binary file - it seems that I can only write ASCII characters which is not binary.



-------------------------
Paul Miller
Specification Practices Specialist,
EuroCyber,
Melbourne, Australia.
Mobile: +61 (0)418 135 103
Web Site: http://www.eurocyber.biz
E-mail: miller@eurocyber.biz">pmiller@eurocyber.biz
Report this to a Moderator Report this to a Moderator
 31-Aug-2004 16:13
User is offline View Users Profile Print this message


Hugh Johnson

Posts: 27
Joined: 5-Aug-2004

Hi Paul,

I needed something similar myself so I wrote the attached function.

Obviously this is limited to max input value dictated by the range of an integer, therfore the maximum hex value this function can cope with is '7FFFFFFF' (2147483647) the reason for this is that in DOORS the integer type seems to be stored as 31 bits + 1 sign bit. Since we don't use the sign bit we are limited to a 31bit number.

Hope this helps.

Hugh


-------------------------
Hugh Johnson

Westland Helicopters Ltd.
myurl

Edited: 1-Sep-2004 at 08:56 by Hugh Johnson
Report this to a Moderator Report this to a Moderator
Statistics
20925 users are registered to the Telelogic DOORS forum.
There are currently 1 users logged in.
The most users ever online was 15 on 15-Jan-2009 at 16:36.
There are currently 0 guests browsing this forum, which makes a total of 1 users using this forum.
You have posted 0 messages to this forum. 0 overall.

FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.