initial commit

This commit is contained in:
Blue 2018-08-05 00:46:25 +03:00 committed by Юрий Губич
commit 4b60ece582
327 changed files with 28286 additions and 0 deletions

41
lib/wModel/list.h Normal file
View file

@ -0,0 +1,41 @@
#ifndef M_LIST_H
#define M_LIST_H
#include "model.h"
#include <wType/object.h>
#include <wType/address.h>
#include <wType/vector.h>
namespace M {
class List : public M::Model
{
public:
List(const W::Address p_address, QObject* parent = 0);
~List();
void push(const W::Object& obj);
void push(W::Object* obj);
void clear();
uint64_t size() const;
const W::Object& at(uint64_t index) const;
void set(const W::Object & value) override;
void set(W::Object * value) override;
M::Model::ModelType getType() const override;
static const M::Model::ModelType type = list;
protected:
void h_subscribe(const W::Event & ev) override;
handler(get);
private:
W::Vector* data;
};
}
#endif // M_LIST_H