-
Notifications
You must be signed in to change notification settings - Fork 66
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
move eds import&export to its own file #104
move eds import&export to its own file #104
Conversation
@CANopenNode im not done, but was it something like this you thought about? Suggestion about the name of the new file are welcome :) |
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.
That looks good tp me!
Yes, that is something I thought. I hope, about 1000 lines will go out from eds.cs. Maybe For If we decide to bite into this, then should agree all three of us and then discuss and cooperate. After finishing that part application should look and behave more or less the same as now. |
I think that's a good idea. But I'm afraid my C# skills aren't good enough for that. :-( |
Good point, i will switch before im done.
Sounds good at least in theory, and i have no better idea.
maybe
Yes, agree |
|
I can recognise the goal and I like it. I've looked at the code and it's going in a very good direction. I hope to do some more testing next week and test the changes in the real workflow. So a "go" from me for now. Thank you! |
eds.cs seems more manageable now. Its central part is The concept is OK, but the file is too messy. For the beginning I will write a new file (just a proposal, without references) with rewritten EDSsharp class (or name it CanOpenDevice). It will be basically a database for our CANopen device. We could discuss about the details then. I have a question: once we have a populated CanOpenDevice class instance, can we simply serialize it into a JSON file. And later load it back. Is this a good idea? |
Agree
👍
Yes, and its not that hard, but not sure how it works if we add/remove fields from the classes at a later time, but that is a problem with most formats.
I am not sure yet, but not against the idea. What we need is a format that has "native" support for everything that xdd and edi has + canopennode things? |
JSON seems very simple to me, almost 1:1 with the class, all automatic. As from the link:
xdd1_1 stores canopennode things. It is also used as default project file. But that format is very complex and CANopenEditor supports it only partly. Luckily it allows storing custom properties, but limited. JSON seems just so much easier and more useful for the project file. Besides JSON can be loaded also to python or other languages. Of course, we could still use xdd or eds for import/export, as now. |
okay, sounds good to me |
Trying to move import & export code away from eds.cs
closes #105