- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Is there a convenient way to handle GUIDs in Fortran? I need to read a binary file that contains GUIDs as identifiers. The only manipulation I need to do inside my application is to compare them and know when two objects have been tagged with the same GUID.
David
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Quoting - david.dilaura@colorado.edu
Is there a convenient way to handle GUIDs in Fortran? I need to read a binary file that contains GUIDs as identifiers. The only manipulation I need to do inside my application is to compare them and know when two objects have been tagged with the same GUID.
There's already defined TYPE(T_GUID) in ifwinty. If I recall correctly, you can test two TYPEs for equality (== or .EQ.), and even if not, you can define your own INTERFACE OPERATOR(.EQ.) (as well as other operators, such as < or >, which can be useful if you need sorting/indexing/searching facilities).
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page