Schim
Public Member Functions | List of all members
Sheet Class Reference

This class models a sheet of paper. More...

#include <sheet.h>

Inheritance diagram for Sheet:
[legend]
Collaboration diagram for Sheet:
[legend]

Public Member Functions

int getIndex ()
 Return the index of the sheet in the project it belongs to.
 
virtual ProjectgetParent () const
 Override getParent with covariant return type Project.
 
void setHeader (Header *header, bool destroy=true)
 Set this sheet's header. More...
 
- Public Member Functions inherited from Entity
 Entity (Entity *parent=nullptr)
 Construct an empty entity with an optional parent.
 
virtual ~Entity ()=default
 Default destructor that makes this class virtual.
 
VariableSet getVariables () const
 Return the variables defined for this entity. More...
 

Additional Inherited Members

- Protected Attributes inherited from Entity
QString name
 The name of the entity.
 
QString fileName
 The name of the source file where the entity is defined.
 
VariableSet variables
 The variables associated with this entity.
 
Entityparent {}
 The parent of this entity.
 

Detailed Description

This class models a sheet of paper.

This class should always take care of the destruction of the objects it contains.

Member Function Documentation

◆ setHeader()

void Sheet::setHeader ( Header header,
bool  destroy = true 
)

Set this sheet's header.

Parameters
destroyWhether to destroy the old header.
Note
The sheet takes ownership of header.

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