28 circularBufferCapacity,
double timeFrameLength) :
31 circularBufferCapacity_(circularBufferCapacity),
32 timeFrameLength_(timeFrameLength) {
86 settings.setValue(
"type",
type_);
87 settings.setValue(
"circular_buffer_capacity", QVariant::
89 settings.setValue(
"time_frame_length", QVariant::
94 setType(static_cast<Type>(settings.value(
"type",
Vector).toInt()));
96 10000).toULongLong());
107 stream << (int)
type_;
114 quint64 circularBufferCapacity;
115 qreal timeFrameLength;
118 setType(static_cast<Type>(type));
119 stream >> circularBufferCapacity;
121 stream >> timeFrameLength;
size_t getCircularBufferCapacity() const
double getTimeFrameLength() const
size_t circularBufferCapacity_
CurveDataConfig(QObject *parent=0, Type type=Vector, size_t circularBufferCapacity=1000, double timeFrameLength=10.0)
void save(QSettings &settings) const
void read(QDataStream &stream)
void circularBufferCapacityChanged(size_t capacity)
void setCircularBufferCapacity(size_t capacity)
void setTimeFrameLength(double length)
void write(QDataStream &stream) const
void timeFrameLengthChanged(double length)
void load(QSettings &settings)
void typeChanged(int type)
CurveDataConfig & operator=(const CurveDataConfig &src)