Boost logo

Boost :

Subject: [boost] Is there interest in a reusable stream-based console?
From: Michael Hava (mfh_at_[hidden])
Date: 2012-03-03 19:11:48

I’ve recently started to design a header-only reusable console-class that’s based on std::iostream. It can be customized by adding a variable amount of “commands”. The implementation is currently based on std::stream and may support any compatible stream as input and output.

A typical example of usage would be (excluding namespaces):
console c(console::case_sensitive);//create case-sensitive console, that reads commands from std::cin and outputs to std::cout and std::cerr
c += command(“Name of command”, “Description of command”, “Extended information on parameters of command”, function);//add command to console, whereas function is a std::function
c();//execute console; console is executed until function to stop is called

Is there any interest in adding such a library to boost?


Boost list run by bdawes at, gregod at, cpdaniel at, john at