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

C++ RAII Wrapper #61

Open
efp opened this issue Aug 25, 2022 · 3 comments
Open

C++ RAII Wrapper #61

efp opened this issue Aug 25, 2022 · 3 comments

Comments

@efp
Copy link

efp commented Aug 25, 2022

Greetings,

I plan on incorporating MCPL into a project of mine. Previously, I had used pyne to extract data from MCNP ssw files into an HDF file... while not as widely supported as HDF, this looks like it has better conversion support. And, with the python bindings (yay!) I can convert any way I want. (Question... are the mcpl files portable across OS's?)

However, I can not abide the unmanaged memory of C, I will be writing a RAII C++11 wrapper class for it. Shall I submit it?

@tkittel
Copy link
Member

tkittel commented Aug 26, 2022

Hi @efp,

The MCPL files should in principle be portable across OS, at least if you stay away from any big-endian systems :-). Having said that, most users are on linux/osx, but certainly there are also some on windows and perhaps freebsd. Beyond that I am not 100% sure what the status is.

And sure, feel free to submit any example code you might create that could potentially help other users :-)

Just be sure to mention explicitly that you release it under the MCPL license (CC0).

And FYI I am actually considering one day to make a pure modern C++ implementation of the MCPL handling code, not just a wrapper (mostly because it would be so very much nicer to deal with). However, it is not something I have concrete plans to do in the near future.

Cheers,
Thomas

@efp
Copy link
Author

efp commented Aug 29, 2022

Sounds like you'd like it submitted as an 'example' rather than part of the source distribution?

@tkittel
Copy link
Member

tkittel commented Aug 30, 2022

Well, given that I haven't seen the code yet, I haven't really decided what to do with it :-)
To begin with, just submit it anywhere and then we take it from there.

Cheers,
Thomas

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants