vega
vega.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <stdexcept>
4 #include <string>
5 
6 namespace vega {
11  class Exception : public std::runtime_error {
12  public:
13  Exception() : std::runtime_error("")
14  {}
15 
16  Exception(std::string msg) : std::runtime_error(msg)
17  {}
18  };
19 
24  enum class Endian {
25  LITTLE,
26  BIG
27  };
28 
31 }
Endian
Definition: vega.h:24
Exception()
Definition: vega.h:13
Exception(std::string msg)
Definition: vega.h:16
The base class for exceptions that are raised by the vega library.
Definition: vega.h:11
Big endian.
Little endian.
Definition: age.h:6
Endian get_machine_endian()