-
🏭 Easy-to-use utilities to accelerate your C++ development.
-
📚 Comprehensive documentation with examples for quick understanding.
-
📦 Simple build process using make for easy compilation and testing.
-
🔧 Bundled with essential open-source libraries for your convenience.
To build and use CppTools, follow these steps:
-
Clone the repository:
git clone https://github.com/AndersonPaschoalon/CppTools.
-
Build the library and run tests:
cd CppTools/Linux make
-
Create a usable library package:
make pkg
The tarball (cpptools_.tar.gz) with the binaries and includes will be created in the Linux/pkg folder.
-
Linking to CppTools in your project: Create a libs/cpptools/ folder in your project. Extract the tarball content into the libs/cpptools/ folder. Add the following flags to your g++ compilation command:
-Llibs/cpptools/bin -lcpptools -Ilibs/cpptools/include
Use the CppTools library in your code:
In your source code, include "cpptools.h" to access all the necessary headers. For example:
#include "cpptools.h" int main() { std::string trimStr = " abs "; StringUtils::trim(trimStr); std::cout << trimStr << std::endl; // Output: "abs" return 0; }
This project is licensed under the MIT License. See the LICENSE file for details.
CppTools wouldn't be possible without the amazing work of several open-source projects. Special thanks to:
- rapidxml - Fast XML parsing library.
- Plog library - A lightweight and flexible logging library.
- Unity - A simple unit testing framework for C.
- Wild logging - A flexible C++ logging library.
A big thanks to the developers of these projects for their hard work and contributions to the open-source community!
CppTools is an open-source project, and we welcome your contributions and feedback. If you have ideas, bug reports, or want to add new features, feel free to create an issue or submit a pull request.
Happy Coding! 😄