35 std::uint32_t
rod()
const;
38 std::uint32_t
fibre()
const;
41 operator unsigned int()
const;
44 bool is_valid(
const bool usingDbCabling)
const;
50 unsigned int index()
const;
75 bool rodIdInRange(std::uint32_t
r,
const bool usingDbCabling)
const;
SCT_OnlineId is a class to hold an online id number and provide check on validity,...
std::uint32_t fibre() const
Return the fibre.
bool couldBeValid(std::uint32_t r)
Rough check on validity.
bool fibreInRange(std::uint32_t f) const
Simple range check.
bool is_valid() const
Check whether the onlineId is valid, without knowing the data source; this is a rough check.
std::uint32_t m_onlineId
The underlying number.
std::uint32_t rod() const
Return the rod/rob Id.
SCT_OnlineId & operator++()
Implement pre-increment and post-increment for iterating over fibres in a rod.
static bool rodIdInRange(std::uint32_t r)
Is the rod in range?
unsigned int index() const
Return an index in the range 0-9215, calculated from parts of the onlineId.
SCT_OnlineId()
Default constructor produces an invalid serial number.