freeUV3 is a tiny library for decoding UV3 files which provides in a simple way (just only 2 calls), a mechanism for extract information inside of the .UVData and .UVSetup format files using a portable non-intrusive API.
This project can also serves as template for new projects, it gives a good CMake base with a few dependencies you most likely want in your project. It set ups some basic CI builds.
- Decode .UV3Data and .UV3Setup files in seamlessly way.
- c++ standard only dependency.
The following small example should contain most of the syntax you need to use the library.
# include "uv3decoder.h"
int main(){
UV3Decoder decoder("test.UVData");
if (decoder.good()) {
auto v = decoder.get();
for (const auto &n : v) {
std::ofstream ofs(n->filename_, std::ios::binary);
ofs << n->buffer_.rdbuf();
ofs.close();
}
decoder.close();
}
}
The library can be used with C++03. However, it requires C++11 to build, including compiler and standard library support. The following minimum versions are required to build the library:
- GCC 4.8
- Clang 3.4
- Visual Studio 2013
- Intel 2015 Update 1