Skip to content

A C++ library aimed at easing the day-to-day work required by some mundane tasks, like reading the contents of a file, or queuing up work. Loosely based on the .NET BCL, where it makes sense.

brunokc/NCL

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

56 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NCL - Native Class Library

NCL (pronounced "Nickel") is a C++ library aimed at making day-to-day tasks easier to do. The API borrows the design from the .NET Base Class Library (BCL) where it makes sense, while maintaining some well-known C++ standards, like the use of STL. For example, std::wstring are used instead of a new String class (although more helpers functions are provided); std::vector<> is used instead of raw arrays and std::shared_ptr<> is used to allow sharing of object instances.

Example 1

#include <io/File.h>
#include <io/FileStream.h>

auto file = File::CreateText(L"test.txt");
file->WriteLine(L"This is a test file.");

Example 2

#include <io/Directory.h>
#include <io/File.h>
#include <io/Path.h>

for (const auto& dir : Directory::EnumerateDirectories(L"."))
{
    if (File::Exists(Path::Combine(dir->FullPath(), L"README.md")))
    {
        wprintf(L"Found README.md in directory %s\n", dir->Name());
    }
}

About

A C++ library aimed at easing the day-to-day work required by some mundane tasks, like reading the contents of a file, or queuing up work. Loosely based on the .NET BCL, where it makes sense.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published