Minsky
publication.h
Go to the documentation of this file.
1 /*
2  @copyright Steve Keen 2024
3  @author Russell Standish
4  This file is part of Minsky.
5 
6  Minsky is free software: you can redistribute it and/or modify it
7  under the terms of the GNU General Public License as published by
8  the Free Software Foundation, either version 3 of the License, or
9  (at your option) any later version.
10 
11  Minsky is distributed in the hope that it will be useful,
12  but WITHOUT ANY WARRANTY; without even the implied warranty of
13  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  GNU General Public License for more details.
15 
16  You should have received a copy of the GNU General Public License
17  along with Minsky. If not, see <http://www.gnu.org/licenses/>.
18 */
19 
20 #ifndef PUBLICATION_H
21 #define PUBLICATION_H
22 #include <string>
23 #include <vector>
24 namespace schema3
25 {
27  {
28  int item=-1;
29  float x=100,y=100;
30  float zoomX=1, zoomY=1;
31  double rotation=0;
32  bool editorMode=false;
33  PublicationItem()=default;
34  PublicationItem(int item, const PublicationItem& x) {*this=x; this->item=item;}
35  };
36 
38  {
39  std::string name;
40  std::vector<PublicationItem> items;
41  float x=100,y=100,zoomFactor=1;
42  };
43 }
46 #include "publication.cd"
47 #include "publication.xcd"
48 #endif
void xsd_generate(xsd_generate_t &g, const string &d, const minsky::Optional< T > &a)
Definition: optional.h:77
PublicationItem(int item, const PublicationItem &x)
Definition: publication.h:34
std::vector< PublicationItem > items
Definition: publication.h:40
void xml_pack(xml_pack_t &t, const string &d, minsky::Optional< T > &a)
Definition: optional.h:84