RayZaler 0.1
The free opto-mechanical simulation framework
DataProduct.h
1//
2// Copyright (c) 2024 Gonzalo José Carracedo Carballal
3//
4// This program is free software: you can redistribute it and/or modify
5// it under the terms of the GNU Lesser General Public License as
6// published by the Free Software Foundation, either version 3 of the
7// License, or (at your option) any later version.
8//
9// This program is distributed in the hope that it will be useful, but
10// WITHOUT ANY WARRANTY; without even the implied warranty of
11// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12// GNU Lesser General Public License for more details.
13//
14// You should have received a copy of the GNU Lesser General Public
15// License along with this program. If not, see
16// <http://www.gnu.org/licenses/>
17//
18
19#ifndef _DATA_PRODUCT_H
20#define _DATA_PRODUCT_H
21
22#include <string>
23
24namespace RZ {
26 std::string m_name = "product";
27 bool m_haveView = false;
28
29 protected:
30 virtual void build();
31
32 public:
33 virtual ~DataProduct();
34 virtual std::string productType() const = 0;
35 virtual bool saveToFile(std::string const &path) const = 0;
36 virtual void clear();
37
38 void setProductName(std::string const &);
39 std::string productName() const;
40
41 void discardView();
42 void prepareView();
43 };
44}
45
46#endif // _DATA_PRODUCT_H
Definition: DataProduct.h:25