Skip to content

Instantly share code, notes, and snippets.

set(CMAKE_SYSTEM_NAME Linux)
set(CMAKE_SYSTEM_PROCESSOR aarch64)
set(TOOLS /opt/toolchains/aarch64-rpi3-linux-gnu)
set(CMAKE_C_COMPILER ${TOOLS}/bin/aarch64-rpi3-linux-gnu-gcc)
set(CMAKE_CXX_COMPILER ${TOOLS}/bin/aarch64-rpi3-linux-gnu-g++)
set(CMAKE_SYSROOT ${TOOLS}/aarch64-rpi3-linux-gnu/sysroot)
set(CMAKE_FIND_ROOT_PATH ${CMAKE_SYSROOT})
set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
template <class T, class M> M GetFieldType(M T::*);
template <typename T>
void GenerateTest(DataType::Processed container,
const std::string &container_name, T field,
const std::string &field_name) {
std::set<decltype(GetFieldType(field))> values;
for (const auto &data_type : container) {
values.emplace(data_type.second.*field);
}
#include <condition_variable>
#include <mutex>
#include <thread>
#include <queue>
#include <iostream>
#include <random>
#include <ctime>
#include <unistd.h>
template<typename T>
@Masterkatze
Masterkatze / PKGBUILD
Last active September 25, 2021 11:33
db-converter PKGBUILD
pkgname="db-converter"
pkgver="0.4"
pkgrel="2"
pkgdesc="Game archive packer/unpacker for the S.T.A.L.K.E.R. game series"
arch=('x86_64')
url="https://github.com/Masterkatze/db-converter"
license=('unknown')
source=('git+https://github.com/Masterkatze/db-converter.git')
md5sums=('SKIP')
depends=('boost' 'spdlog' 'gtest')
#include <iostream>
#include <string>
#include <vector>
#include <algorithm>
int main()
{
// s - subject list, t - target list
// s - data model, t - runtime model