#define __SFJP_ROAST__io__io_base_HPP__
#include <string>
+#include <exception>
namespace roast
{
public:
//virtual ~io_base(){ _close(); }
- virtual void open(const void* p_params)=0;
- virtual void close()=0;
+ virtual void open(const void* p_params) /*throw(io_exception)*/ =0;
+ virtual void close() /*throw(io_exception)*/ =0;
- virtual int read(void *buf, size_t size)=0;
- virtual int write(const void *buf, size_t size)=0;
- virtual int ioctl(const void *data){ return -1; }
+ virtual int read(void *buf, size_t size) /*throw(io_exception)*/ =0;
+ virtual int write(const void *buf, size_t size) /*throw(io_exception)*/ =0;
+ virtual int ioctl(const void *data) /*throw(io_exception)*/ { return -1; }
};
//////////////////////////////////////////////////////////////