aboutsummaryrefslogtreecommitdiffstats
path: root/include/diagram/structogram.h
blob: cd501aa0fe4abfc743c15df59de68fb9cc36bb53 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#ifndef DIAGRAM_STRUCTOGRAM_H
#define DIAGRAM_STRUCTOGRAM_H

#include "diagram/scope.h"

#include <QString>

namespace samb {

/* A structogram is a specific type of scope, that is the root scope.
 * As a result it contains some metadata informations about the author,
 * date of creation ecc.
 */
class Structogram : public Scope
{
public:
    Structogram(const QString &title, const QString &author);
    virtual ~Structogram();

    /* accessors */
    inline void title(const QString &title) { text(title); }
    inline const QString& title() const { return text(); }

    void author(const QString &author) { _author = author; }
    const QString& author() const { return _author; }

private:
    QString _author;
};

}

#endif /* DIAGRAM_STRUCTOGRAM_H */