Home
Install
Use
Develop
Support
News
Credits
hosted by
|
10#ifndef __UTILS_UNITS_FILE_CAST_H
11#define __UTILS_UNITS_FILE_CAST_H
17T* hard_const_cast ( const T* x)
19 return const_cast<T* > (x);
22template< typename To, typename From>
23To* file_cast ( const From* from)
27 throw Error (FailedSys, "file_cast", "tmpfile");
32 std::unique_ptr<To> to ( new To);
34 hard_const_cast(to.get())->load (temp);
39template< typename To, typename From>
40To* dynamic_file_cast (From* from)
42 To* to = dynamic_cast<To* >( from );
46 return file_cast<To>(from);
A convenient exception handling class. Definition Error.h:54
Closes a FILE* when it goes out of scope. Definition FilePtr.h:19
Generated using doxygen 1.14.0
|