5d235b51f3
tmp commit tmp commit v2 Finished reimplementation of propertys. They now can be placed in a holder with different source of type information. Tmp commit
24 lines
438 B
C++
24 lines
438 B
C++
#pragma once
|
|
|
|
#include "storage/model/properties/double.hpp"
|
|
#include "storage/model/properties/flags.hpp"
|
|
#include "storage/model/properties/floating.hpp"
|
|
|
|
class Float : public Floating<Float>
|
|
{
|
|
|
|
public:
|
|
const static Type type;
|
|
|
|
Float(float d) : data(d) {}
|
|
|
|
operator Double() const { return Double(value()); }
|
|
|
|
float &value() { return data; }
|
|
|
|
float const &value() const { return data; }
|
|
|
|
private:
|
|
float data;
|
|
};
|