CMD++ Code
Brought to you by:
steinymity
CLIsystem - An open source library for interactive command line programs
Copyright (C) 2010 Maximilian Stein
CLIsystem is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
CLIsystem is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with CLIsystem. If not, see <http://www.gnu.org/licenses/>.
With the CLIsystem you can easily program an interactive command line interface application.
CLIsystem processes strings by fragment it to a command and several parameters with its values.
The behavior of CLIsystem is customizable so it can also used for other puposes, such as
parsing mathematic formulas (in this case you would extend the operators to '+', '-', '*', '/',
'=', ... and define a new input function - which could get its data from a GUI form).
CONTENT
1. Contents of the package
2. How to use the CLIsystem in your own project
3. Compile the lib and the example application
4. Contact
1. Content of the package
CLIsystem.cbp
CLIsystem.cpp
CLIsystem.h
COPYING
COPYING.LESSER
ChangesLog.txt
Command.cpp
Command.h
README
SParam.h
_types.h
calcID.cpp
calcID.h
convert.h
input.h
libCLIsystem.a
main.cpp
version.h
2. How to use the CLIsystem in your own project
To use the CLIsystem in your project you just need to #include the CLIsystem.h file and
link the library file (if you are programming for WIN32 you may link the provided libCLIsystem.a).
The class CLIsystem is the interface to the CLIsystem.
Look to the file main.cpp for an example.
3. Compile the lib and the example application
If you are using Code::Blocks
-To compile the lib open the CLIsystem.cbp and compile the target "Library"
-To compile the example application open the CLIsystem.cbp and compile the target "Test"
If you are using another IDE or the command-line
-To compile the lib add all source and header files except the main.cpp to a project and compile it to a static library
-To compile the example application add all source and header files to a project and compile it to a console application
However you will need the ListLibs files to compile CLIsystem. This project is hosted at sourceforge, too.
4. Contact
If you have trouble and/or suggestions please contact me:
steinymity@users.sourceforge.net
or visit the project at sourceforge.net