Newer
Older
Import / research / framework / tests / main.cpp
@John Ryland John Ryland on 22 Dec 2020 486 bytes import NUC files
/************************************************
*
*  Main
*  Copyright (C) 2020
*  John Ryland
*  All rights reserved
*
************************************************/
#include <cstdio>
#include "CsvParser.hpp"

int main(int argc, char* argv[])
{
    CsvParser parser;
    parser.SetFieldNames({ "name", "position", "state" });
    parser.Parse("test.csv");
    for (const auto& row : parser.GetRows())
    {
        int a = parser.GetFieldValue<int>(0, row);
    }
    return 0;
}