FougTools  0.7.0dev-046fb6a Handy tools for C++, Qt and OpenCascade
FougTools Documentation

# FougTools: Handy C++ libraries

This is FougTools v0.7dev

FougTools is a collection of utility libraries for the C++ language, Qt and Open Cascade toolkits.

Check doxygen generated documentation at: http://www.fougue.pro/docs/fougtools

# Building FougTools

Create a file named _local_config.pri in the folder where FougTools will be built and define the following variables, depending on your needs:

1 # Everything will be installed here
2 PREFIX_DIR = /opt/lib/fougtools/install
3
4 # Build static libraries (use "+= shared_libs" for DLLs)
5 CONFIG += static_libs
6
7 # If you want to build occtools (optional)
8 CONFIG += occtools
9 occtools:CONFIG(debug, debug|release) {
10  # Path to build directory of OpenCascade(debug)
12 } else {
13  # Path to build directory of OpenCascade(release)
15 }
16
17 # If you want to build unit tests and examples
18 CONFIG += build_utest build_examples

Or use Ruby configure script qmake/configure.rb. It will generate the _local_config.pri file for you, see help with:

1 ruby $FOUGTOOLS/qmake/configure.rb -h Note that on Windows, qmake complains about deprecated support of backslash '\' characters. So you may have to escape backslashes like C:\\path\\to\\opencascade or simply use Unix separators instead C:/path/to/opencascade Once configuration is done, then type: 1 qmake -r$FOUGTOOLS/qmake/fougtools.pro
2 (n)make
3 (n)make install

# Coding style

The coding style is borrowed from Qt-Creator: http://doc-snapshot.qt-project.org/qtcreator-extending/coding-style.html

With these exceptions:

• Formatting/Capitalizing Identifiers: namespace names begin with a lower case letter
• Use this pattern for pimpl class:
class Foo
{
public:
Foo();
// API ...
private:
class Private;
Private* const d;
};
This has the advantage to not have to forward declare the Private class outside Foo

# How to report a bug

If you think you have found a bug in FougTools, we would like to hear about it so that we can fix it. The FougTools bug tracking system is open to the public at https://github.com/fougue/fougtools/issues.

Before reporting a bug, please use the bug-tracker's search functions to see if the issue is already known.

Always include the following information in your bug report: the name and version number of your compiler; the name and version number of your operating system; the version of FougTools you are using, and what configure options it was compiled with.

If the problem you are reporting is only visible at run-time, try to create a small test program that shows the problem when run.