-
Notifications
You must be signed in to change notification settings - Fork 6
Add Getter accessor for <GDTF DataVersion> #118
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2754,6 +2754,11 @@ namespace SceneData | |
|
|
||
| private: | ||
| //------------------------------------------------ | ||
| // Parameters for the GdtfDataFile | ||
| TXString gdtfFileVersion = XML_GDTF_CurrentVersion; | ||
| TXString gdtfLatestVersion = XML_GDTF_CurrentVersion; | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What do you mean with gdtfLatestVersion? GDTF file have only one version.
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Well, a GDTF file could be an old one that was made using GDTF version 1.1, so GetGDTFFile would return 1.1 |
||
|
|
||
| //------------------------------------------------ | ||
| // Parameters for a GdtfFixture | ||
| TXString fName; | ||
| TXString fShortName; | ||
|
|
@@ -2820,6 +2825,9 @@ namespace SceneData | |
| public: | ||
| //---------------------------------------------------------------------------------------------------------------------------------------------------------------- | ||
| // Getter | ||
| const TXString& GetGdtfFileVersion() const { return gdtfFileVersion; } | ||
| const TXString& GetCurrentGdtfVersion() const { return gdtfLatestVersion; } | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. same question here: Why you need 2 APIs GetGdtfFileVersion and GetCurrentGdtfVersion? GDTF file can have only one version.
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. See above comment. |
||
|
|
||
| const TXString& GetName() const; | ||
| const TXString& GetShortName() const; | ||
| const TXString& GetLongName() const; | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it looks like all member variable had a prefix "f" in the name. So please adapt you changes.