[xswiftbus] Added FPS monitoring

This commit is contained in:
Mat Sutcliffe
2019-12-31 21:22:00 +00:00
parent 836eb107a3
commit 516c8a2fce
5 changed files with 84 additions and 2 deletions

View File

@@ -36,6 +36,8 @@ namespace XSwiftBus
}
}
bool isValid() const { return m_ref; }
template <typename T>
void implSet(T);
@@ -60,6 +62,8 @@ namespace XSwiftBus
}
}
bool isValid() const { return m_ref; }
template <typename T>
void implSetAll(std::vector<T> const &);
@@ -108,6 +112,8 @@ namespace XSwiftBus
//! Get the value of the dataref
DataRefType get() const { return DataRefImpl::implGet<DataRefType>(); }
using DataRefImpl::isValid;
};
/*!
@@ -141,6 +147,8 @@ namespace XSwiftBus
//! Get the value of a single element
DataRefType getAt(int index) const { return ArrayDataRefImpl::implGetAt<DataRefType>(index); }
using ArrayDataRefImpl::isValid;
};
/*!
@@ -165,6 +173,9 @@ namespace XSwiftBus
}
}
//! True if the dataref exists
bool isValid() const { return m_ref; }
//! Set the value of the whole string (if it is writable)
void set(std::string const &s) { setSubstr(0, s); }