Hi all,
Is there any way to start with a FILE* and use that as the input to
any of the file drivers? If not, would it be feasible to construct a
H5FD_t struct around it (as is done in the stdio file driver) and
execute the remaining initialization steps outside of the internal
H5FOpen function?
Thanks,
Matt
Hi Matt
You can use the getter and setter functions of the sec 2 driver or write a
driver of your own.
Cheers
Dimitris
···
On Jul 15, 2014 12:40 AM, "Matthew Turk" <matthewturk@gmail.com> wrote:
Hi all,
Is there any way to start with a FILE* and use that as the input to
any of the file drivers? If not, would it be feasible to construct a
H5FD_t struct around it (as is done in the stdio file driver) and
execute the remaining initialization steps outside of the internal
H5FOpen function?
Thanks,
Matt
_______________________________________________
Hdf-forum is for HDF software users discussion.
Hdf-forum@lists.hdfgroup.org
http://mail.lists.hdfgroup.org/mailman/listinfo/hdf-forum_lists.hdfgroup.org
Twitter: https://twitter.com/hdf5
Hi Dimitris,
Hi Matt
You can use the getter and setter functions of the sec 2 driver or write a
driver of your own.
It looks like that might do just the trick. I'd open the file with a
dummy filename, swap out the handle from get_vfd_handle, but at that
point I think I need to still modify the eof and eoa attributes. I'm
looking into it, but it may just be easier to create modified stdio or sec2
drivers than using the getter/setters.
Thanks,
Matt
···
On Mon, Jul 14, 2014 at 6:22 PM, Dimitris Servis <servisster@gmail.com> wrote:
Cheers
Dimitris
On Jul 15, 2014 12:40 AM, "Matthew Turk" <matthewturk@gmail.com> wrote:
Hi all,
Is there any way to start with a FILE* and use that as the input to
any of the file drivers? If not, would it be feasible to construct a
H5FD_t struct around it (as is done in the stdio file driver) and
execute the remaining initialization steps outside of the internal
H5FOpen function?
Thanks,
Matt
_______________________________________________
Hdf-forum is for HDF software users discussion.
Hdf-forum@lists.hdfgroup.org
http://mail.lists.hdfgroup.org/mailman/listinfo/hdf-forum_lists.hdfgroup.org
Twitter: https://twitter.com/hdf5
_______________________________________________
Hdf-forum is for HDF software users discussion.
Hdf-forum@lists.hdfgroup.org
http://mail.lists.hdfgroup.org/mailman/listinfo/hdf-forum_lists.hdfgroup.org
Twitter: https://twitter.com/hdf5
Hi Matt
What are you trying to do if I may?
Cheers
Dimitris
···
On Jul 15, 2014 3:16 AM, "Matthew Turk" <matthewturk@gmail.com> wrote:
Hi Dimitris,
On Mon, Jul 14, 2014 at 6:22 PM, Dimitris Servis <servisster@gmail.com> > wrote:
> Hi Matt
>
> You can use the getter and setter functions of the sec 2 driver or write
a
> driver of your own.
It looks like that might do just the trick. I'd open the file with a
dummy filename, swap out the handle from get_vfd_handle, but at that
point I think I need to still modify the eof and eoa attributes. I'm
looking into it, but it may just be easier to create modified stdio or sec2
drivers than using the getter/setters.
Thanks,
Matt
>
> Cheers
>
> Dimitris
>
> On Jul 15, 2014 12:40 AM, "Matthew Turk" <matthewturk@gmail.com> wrote:
>>
>> Hi all,
>>
>> Is there any way to start with a FILE* and use that as the input to
>> any of the file drivers? If not, would it be feasible to construct a
>> H5FD_t struct around it (as is done in the stdio file driver) and
>> execute the remaining initialization steps outside of the internal
>> H5FOpen function?
>>
>> Thanks,
>>
>> Matt
>>
>> _______________________________________________
>> Hdf-forum is for HDF software users discussion.
>> Hdf-forum@lists.hdfgroup.org
>>
>>
http://mail.lists.hdfgroup.org/mailman/listinfo/hdf-forum_lists.hdfgroup.org
>> Twitter: https://twitter.com/hdf5
>
>
> _______________________________________________
> Hdf-forum is for HDF software users discussion.
> Hdf-forum@lists.hdfgroup.org
>
http://mail.lists.hdfgroup.org/mailman/listinfo/hdf-forum_lists.hdfgroup.org
> Twitter: https://twitter.com/hdf5
_______________________________________________
Hdf-forum is for HDF software users discussion.
Hdf-forum@lists.hdfgroup.org
http://mail.lists.hdfgroup.org/mailman/listinfo/hdf-forum_lists.hdfgroup.org
Twitter: https://twitter.com/hdf5
Hi Dimitris,
Of course! I've prepared a FILE stream from fopencookie, which I'd like to
use as input to hdf5.
Thanks,
Matt
···
On Jul 14, 2014 7:22 PM, "Dimitris Servis" <servisster@gmail.com> wrote:
Hi Matt
What are you trying to do if I may?
Cheers
Dimitris
On Jul 15, 2014 3:16 AM, "Matthew Turk" <matthewturk@gmail.com> wrote:
Hi Dimitris,
On Mon, Jul 14, 2014 at 6:22 PM, Dimitris Servis <servisster@gmail.com> >> wrote:
> Hi Matt
>
> You can use the getter and setter functions of the sec 2 driver or
write a
> driver of your own.
It looks like that might do just the trick. I'd open the file with a
dummy filename, swap out the handle from get_vfd_handle, but at that
point I think I need to still modify the eof and eoa attributes. I'm
looking into it, but it may just be easier to create modified stdio or
sec2
drivers than using the getter/setters.
Thanks,
Matt
>
> Cheers
>
> Dimitris
>
> On Jul 15, 2014 12:40 AM, "Matthew Turk" <matthewturk@gmail.com> wrote:
>>
>> Hi all,
>>
>> Is there any way to start with a FILE* and use that as the input to
>> any of the file drivers? If not, would it be feasible to construct a
>> H5FD_t struct around it (as is done in the stdio file driver) and
>> execute the remaining initialization steps outside of the internal
>> H5FOpen function?
>>
>> Thanks,
>>
>> Matt
>>
>> _______________________________________________
>> Hdf-forum is for HDF software users discussion.
>> Hdf-forum@lists.hdfgroup.org
>>
>>
http://mail.lists.hdfgroup.org/mailman/listinfo/hdf-forum_lists.hdfgroup.org
>> Twitter: https://twitter.com/hdf5
>
>
> _______________________________________________
> Hdf-forum is for HDF software users discussion.
> Hdf-forum@lists.hdfgroup.org
>
http://mail.lists.hdfgroup.org/mailman/listinfo/hdf-forum_lists.hdfgroup.org
> Twitter: https://twitter.com/hdf5
_______________________________________________
Hdf-forum is for HDF software users discussion.
Hdf-forum@lists.hdfgroup.org
http://mail.lists.hdfgroup.org/mailman/listinfo/hdf-forum_lists.hdfgroup.org
Twitter: https://twitter.com/hdf5
_______________________________________________
Hdf-forum is for HDF software users discussion.
Hdf-forum@lists.hdfgroup.org
http://mail.lists.hdfgroup.org/mailman/listinfo/hdf-forum_lists.hdfgroup.org
Twitter: https://twitter.com/hdf5
Hi Matt
My experience is it is better to copy sec2 and open the stream deep down.
Then get it from the getter if you want to use it elsewhere.
Alternative: I have successfully detoured the low level file open to my own
custom function.
HTH
Dimitris
···
On Jul 15, 2014 3:24 AM, "Matthew Turk" <matthewturk@gmail.com> wrote:
Hi Dimitris,
Of course! I've prepared a FILE stream from fopencookie, which I'd like to
use as input to hdf5.
Thanks,
Matt
On Jul 14, 2014 7:22 PM, "Dimitris Servis" <servisster@gmail.com> wrote:
Hi Matt
What are you trying to do if I may?
Cheers
Dimitris
On Jul 15, 2014 3:16 AM, "Matthew Turk" <matthewturk@gmail.com> wrote:
Hi Dimitris,
On Mon, Jul 14, 2014 at 6:22 PM, Dimitris Servis <servisster@gmail.com> >>> wrote:
> Hi Matt
>
> You can use the getter and setter functions of the sec 2 driver or
write a
> driver of your own.
It looks like that might do just the trick. I'd open the file with a
dummy filename, swap out the handle from get_vfd_handle, but at that
point I think I need to still modify the eof and eoa attributes. I'm
looking into it, but it may just be easier to create modified stdio or
sec2
drivers than using the getter/setters.
Thanks,
Matt
>
> Cheers
>
> Dimitris
>
> On Jul 15, 2014 12:40 AM, "Matthew Turk" <matthewturk@gmail.com> >>> wrote:
>>
>> Hi all,
>>
>> Is there any way to start with a FILE* and use that as the input to
>> any of the file drivers? If not, would it be feasible to construct a
>> H5FD_t struct around it (as is done in the stdio file driver) and
>> execute the remaining initialization steps outside of the internal
>> H5FOpen function?
>>
>> Thanks,
>>
>> Matt
>>
>> _______________________________________________
>> Hdf-forum is for HDF software users discussion.
>> Hdf-forum@lists.hdfgroup.org
>>
>>
http://mail.lists.hdfgroup.org/mailman/listinfo/hdf-forum_lists.hdfgroup.org
>> Twitter: https://twitter.com/hdf5
>
>
> _______________________________________________
> Hdf-forum is for HDF software users discussion.
> Hdf-forum@lists.hdfgroup.org
>
http://mail.lists.hdfgroup.org/mailman/listinfo/hdf-forum_lists.hdfgroup.org
> Twitter: https://twitter.com/hdf5
_______________________________________________
Hdf-forum is for HDF software users discussion.
Hdf-forum@lists.hdfgroup.org
http://mail.lists.hdfgroup.org/mailman/listinfo/hdf-forum_lists.hdfgroup.org
Twitter: https://twitter.com/hdf5
_______________________________________________
Hdf-forum is for HDF software users discussion.
Hdf-forum@lists.hdfgroup.org
http://mail.lists.hdfgroup.org/mailman/listinfo/hdf-forum_lists.hdfgroup.org
Twitter: https://twitter.com/hdf5
_______________________________________________
Hdf-forum is for HDF software users discussion.
Hdf-forum@lists.hdfgroup.org
http://mail.lists.hdfgroup.org/mailman/listinfo/hdf-forum_lists.hdfgroup.org
Twitter: https://twitter.com/hdf5