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

Add support for read / writers #7

Open
realvictorprm opened this issue Aug 14, 2017 · 10 comments
Open

Add support for read / writers #7

realvictorprm opened this issue Aug 14, 2017 · 10 comments

Comments

@realvictorprm
Copy link
Contributor

Help,
Although I'm still getting into the FME SDK API, I think it's right that the .net sdk doesn't support the reader and writer extension functionality yet.

Because I need this for the company I would appreciate if this would be implemented next.

@realvictorprm
Copy link
Contributor Author

Hello @ahuarte47 😃 I need help for writing the C++ Wrapper Code, is there anything you can give me to ease the process?

@ahuarte47
Copy link
Contributor

Hello @realvictorprm, thanks for your idea. We did not need to implement the reader/writer wrappers for our project. Sorry, I know this new feature is very interesting but, unfortunately this project was finished some time ago and We have no founds to add new features like this to this SDK.

Did you have a look at "$(FME_HOME)\pluginbuilder\samples\cpp\code\FMEReaderWriter" folder? It is a good point to start.

@realvictorprm
Copy link
Contributor Author

Yes I already started looking into it. I'm trying to implement it for the SDK.

@ahuarte47
Copy link
Contributor

ok, what help would you like?

@realvictorprm
Copy link
Contributor Author

realvictorprm commented Aug 16, 2017 via email

@ahuarte47
Copy link
Contributor

You can write a full IFMEReader/IFMEWriter implementation (Empty methods is ok to start) in C++/CLI which call a new interface similar to this. Then, in the .NET client side, you can write your implementation with empty methods too. The key of this is to load the .NET assembly in the C++/CLI (Maybe in the C++ constructor) with something similar to this.

Sorry, I do not know this is useful for you

@ahuarte47
Copy link
Contributor

Fortunately, there are few public methods to define for IFMEReader/IFMEWriter classes.

@realvictorprm
Copy link
Contributor Author

realvictorprm commented Aug 16, 2017 via email

@realvictorprm
Copy link
Contributor Author

My plan would be to define the interfaces in the C++ CLI code and the DotNetWrapper class.

@ahuarte47 So far I understood you there is some kind of assembly loading needed afterwards?

@ahuarte47
Copy link
Contributor

ahuarte47 commented Aug 16, 2017

Yes, in a point of the C++/CLI code you have to load the DotNetWrapper class deployed in your specific .DLL file. I would write something similar to this

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