Skip to content

Header only C++11 LDT loader/writer

License

Notifications You must be signed in to change notification settings

fknfilewalker/tinyldt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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)

Releases

No releases published

Packages

No packages published

Languages