From 36a1402be747136711edc19f7bce45f36a625eb4 Mon Sep 17 00:00:00 2001 From: Benjamin Paassen Date: Thu, 6 Mar 2014 10:09:32 +0000 Subject: added proper namespaces and ignored end elements in xml parsing git-svn-id: file:///var/local/svn/basicwriter@27 daaaf23c-2e50-4459-9457-1e69db5a47bf --- src/model/RangeSet.hpp | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'src/model/RangeSet.hpp') diff --git a/src/model/RangeSet.hpp b/src/model/RangeSet.hpp index 3768431..e6e60e0 100644 --- a/src/model/RangeSet.hpp +++ b/src/model/RangeSet.hpp @@ -16,13 +16,13 @@ along with this program. If not, see . */ -#ifndef _RANGE_SET_HPP_ -#define _RANGE_SET_HPP_ +#ifndef _OUSIA_MODEL_RANGE_SET_HPP_ +#define _OUSIA_MODEL_RANGE_SET_HPP_ #include namespace ousia { - +namespace model { /** * The Range structure represents an interval of numerical values of type T. */ @@ -150,7 +150,7 @@ struct Range { * Returns a range that represents the spans the complete set defined by the * given type T. */ - static Range hull() + static Range typeRange() { return Range(std::numeric_limits::min(), std::numeric_limits::max()); @@ -163,7 +163,7 @@ struct Range { * @param till is the value up to which the range should be defined (till is * included in the set). */ - static Range hullUntil(const T &till) + static Range typeRangeUntil(const T &till) { return Range(std::numeric_limits::min(), till); } @@ -175,7 +175,7 @@ struct Range { * @param from is the value from which the range should be defined (from is * included in the set). */ - static Range hullFrom(const T &from) + static Range typeRangeFrom(const T &from) { return Range(from, std::numeric_limits::max()); } @@ -318,7 +318,8 @@ public: }; +} } -#endif /* _RANGE_SET_HPP_ */ +#endif /* _OUSIA_MODEL_RANGE_SET_HPP_ */ -- cgit v1.2.3