Skip to content
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

Support basic mdf writing of .NET #24

Merged
merged 11 commits into from
Jul 23, 2023
Merged

Support basic mdf writing of .NET #24

merged 11 commits into from
Jul 23, 2023

Conversation

Simplxss
Copy link
Collaborator

@Simplxss Simplxss commented Jul 23, 2023

I change the return type of CreateMdfWriter & CreateMdfFile ininclude/mdf/mdffactory.h to common ptr to avoid unnecessary type casting. I don't think it's a good choice to return unique_ptr in an interface, it should be down by the users themselves.
I just finish writing the basic features, if any futher supports needed, please tell me.

@Simplxss Simplxss requested a review from ihedvall July 23, 2023 04:50
@Simplxss Simplxss self-assigned this Jul 23, 2023
@Simplxss Simplxss linked an issue Jul 23, 2023 that may be closed by this pull request
@Simplxss Simplxss marked this pull request as draft July 23, 2023 05:09
@ihedvall ihedvall marked this pull request as ready for review July 23, 2023 08:18
Copy link
Owner

@ihedvall ihedvall left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

MdfFactory.h/cpp
This change of C++ signature may cause problemfor existing c++ users. I suspect that it's the unique_ptr (memory) include that causing the problem. Maybe moving the include MdfFactory.h from the mdfwrite.h to its cpp file will fix the problem.

@Simplxss
Copy link
Collaborator Author

ok, I will create a new function CreateMdfWriterEx & CreateMdfWriterEx and keep the original function signature.

@Simplxss Simplxss requested a review from ihedvall July 23, 2023 10:27
Copy link
Owner

@ihedvall ihedvall left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great work!

@ihedvall ihedvall merged commit e11b715 into ihedvall:main Jul 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

.NET C++/CLI interface for MDF writers
2 participants