I lack of experience with C++ and I am trying to create a Settings file to put all my definitions and global variables there, so my project's classes can access those the values from there. The Settings.h file could look like this:
#ifndef SETTINGS_H_
#define SETTINGS_H_
#define COLOR_BLUE = Vec3b(255, 0, 0);
#define COLOR_GREEN = Vec3b(0, 255, 0);
#define NOT_SET = 0;
#define IN_PROCESS = 1;
#define SET = 2;
#define FGD_PX = 255;
#define BGD_PX = 127;
#include <cv.h>
using namespace cv;
class Settings {
};
#endif /* SETTINGS_H_ */
The idea is to access the variables without instantiate the class but just including it.
Is there any beautiful way to do this?
cheers,