Several files astylized.
This commit is contained in:
@@ -23,15 +23,16 @@
|
||||
#include <vector>
|
||||
#include "../rtgui/options.h"
|
||||
|
||||
class DynamicProfileRule {
|
||||
class DynamicProfileRule
|
||||
{
|
||||
public:
|
||||
template <class T>
|
||||
struct Range {
|
||||
T min;
|
||||
T max;
|
||||
explicit Range(T l=T(), T u=T()): min(l), max(u) {}
|
||||
explicit Range (T l = T(), T u = T()): min (l), max (u) {}
|
||||
|
||||
bool operator()(T val) const
|
||||
bool operator() (T val) const
|
||||
{
|
||||
return val >= min && val <= max;
|
||||
}
|
||||
@@ -40,15 +41,15 @@ public:
|
||||
struct Optional {
|
||||
Glib::ustring value;
|
||||
bool enabled;
|
||||
explicit Optional(const Glib::ustring v="", bool e=false):
|
||||
value(v), enabled(e) {}
|
||||
explicit Optional (const Glib::ustring v = "", bool e = false):
|
||||
value (v), enabled (e) {}
|
||||
|
||||
bool operator()(const Glib::ustring &val) const;
|
||||
bool operator() (const Glib::ustring &val) const;
|
||||
};
|
||||
|
||||
DynamicProfileRule();
|
||||
bool matches(const rtengine::ImageMetaData *im) const;
|
||||
bool operator<(const DynamicProfileRule &other) const;
|
||||
bool matches (const rtengine::ImageMetaData *im) const;
|
||||
bool operator< (const DynamicProfileRule &other) const;
|
||||
|
||||
int serial_number;
|
||||
Range<int> iso;
|
||||
@@ -61,7 +62,8 @@ public:
|
||||
Glib::ustring profilepath;
|
||||
};
|
||||
|
||||
class DynamicProfileRules {
|
||||
class DynamicProfileRules
|
||||
{
|
||||
protected:
|
||||
/** cache for dynamic profile rules */
|
||||
std::vector<DynamicProfileRule> dynamicRules;
|
||||
@@ -71,7 +73,7 @@ public:
|
||||
bool loadRules();
|
||||
bool storeRules();
|
||||
const std::vector<DynamicProfileRule> &getRules() const;
|
||||
void setRules(const std::vector<DynamicProfileRule> &r);
|
||||
void setRules (const std::vector<DynamicProfileRule> &r);
|
||||
};
|
||||
|
||||
#endif // _DYNAMICPROFILE_H_
|
||||
|
Reference in New Issue
Block a user