|
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?
greetz
Michael
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk