summaryrefslogtreecommitdiff
path: root/wrapper/wrapper_io.hpp
blob: 6b94e4697ff87d543ee0247c59c753a3bfff2317 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#pragma once

#include <rawaccel-error.hpp>
#include <rawaccel-settings.h>
#include <rawaccel-version.h>

using namespace rawaccel;
using namespace System;

struct wrapper_io {
	static void writeToDriver(const settings&);
	static void readFromDriver(settings&);
	static void getDriverVersion(version_t&);
};

public ref struct DriverIOException : public IO::IOException {
public:
	DriverIOException() {}
	DriverIOException(String^ what) : IO::IOException(what) {}
};

public ref struct DriverNotInstalledException : public DriverIOException {
	DriverNotInstalledException() : 
		DriverIOException(gcnew String(install_error().what())) {}
};