1/*
2 * Copyright 2020, Andrew Lindesay <apl@lindesay.co.nz>.
3 * All rights reserved. Distributed under the terms of the MIT License.
4 */
5#ifndef RATING_STABILITY_H
6#define RATING_STABILITY_H
7
8
9#include <Referenceable.h>
10#include <String.h>
11
12
13class RatingStability : public BReferenceable {
14public:
15								RatingStability();
16								RatingStability(
17									const BString& code,
18									const BString& name,
19									int64 ordering);
20								RatingStability(
21									const RatingStability& other);
22
23			RatingStability&
24								operator=(const RatingStability& other);
25			bool				operator==(const RatingStability& other)
26									const;
27			bool				operator!=(const RatingStability& other)
28									const;
29
30			const BString&		Code() const
31									{ return fCode; }
32			const BString&		Name() const
33									{ return fName; }
34				int64			Ordering() const
35									{ return fOrdering; }
36
37			int					Compare(const RatingStability& other)
38									const;
39private:
40			BString				fCode;
41			BString				fName;
42			int64				fOrdering;
43};
44
45
46typedef BReference<RatingStability> RatingStabilityRef;
47
48
49extern bool IsRatingStabilityBefore(const RatingStabilityRef& rs1,
50	const RatingStabilityRef& rs2);
51
52
53#endif // RATING_STABILITY_H
54