fknfilewalker / tinyldt

Header only C++11 LDT loader/writer

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Header only C++11 LDT loader.

A simple header only loader/writer for ldt files. Parses the file and writes its content to a struct or vice versa.

Usage

#include <tiny_ldt.hpp>

tiny_ldt<float>::light ldt;
// optional: use double precision 
// tiny_ldt<double>
std::string err;
std::string warn;
if (!tiny_ldt<float>::load_ldt(filepath, err, warn, ldt)) {
	// print loading failed
}
if (!err.empty()) // print error
if (!warn.empty()) // print warning

// write ltd to file
if (!tiny_ldt<float>::write_ldt("out.ldt", ldt, /*optional precision*/ 10)) {
	// print writing failed
}

example

Features

  • Load LDT
  • Save LDT
  • Filter candela array data (e.g. resize)

License (MIT)

About

Header only C++11 LDT loader/writer

License:MIT License


Languages

Language:C++ 100.0%