Minsky
schema1::Item Struct Reference

#include <schema1.h>

Inheritance diagram for schema1::Item:
Inheritance graph
Collaboration diagram for schema1::Item:
Collaboration graph

Public Member Functions

 Item (int id=-1)
 
template<class T >
 Item (int id, const T &it)
 
string typeName () const
 
- Public Member Functions inherited from schema1::SPoly< Item, SPolyBase >
SPolyoperator= (const SPoly &)=default
 
SPolyclone () const override
 
string type () const override
 
void xml_pack (xml_pack_t &x, const string &d) const override
 
void xml_unpack (xml_unpack_t &x, const string &d) override
 
void json_pack (json_pack_t &x, const string &d) const override
 
void json_unpack (json_unpack_t &x, const string &d) override
 

Public Attributes

int id
 
string detailedText
 commentary and short commentary on this item More...
 
string tooltip
 

Detailed Description

Definition at line 94 of file schema1.h.

Constructor & Destructor Documentation

◆ Item() [1/2]

schema1::Item::Item ( int  id = -1)
inline

Definition at line 99 of file schema1.h.

99 : id(id) {}

◆ Item() [2/2]

template<class T >
schema1::Item::Item ( int  id,
const T &  it 
)
inline

Definition at line 101 of file schema1.h.

101  :
102  id(id), detailedText(it.detailedText), tooltip(it.tooltip) {}
string detailedText
commentary and short commentary on this item
Definition: schema1.h:98
string tooltip
Definition: schema1.h:98

Member Function Documentation

◆ typeName()

string schema1::Item::typeName ( ) const
inline

Definition at line 104 of file schema1.h.

104 {return type();}
string type() const override
Definition: schema1.h:67

Member Data Documentation

◆ detailedText

string schema1::Item::detailedText

commentary and short commentary on this item

Definition at line 98 of file schema1.h.

◆ id

int schema1::Item::id

◆ tooltip

string schema1::Item::tooltip

Definition at line 98 of file schema1.h.


The documentation for this struct was generated from the following file: