Verovio
Source code documentation
pgfoot.h
1 // Name: pgfoot.h
3 // Author: Laurent Pugin
4 // Created: 2017
5 // Copyright (c) Authors and others. All rights reserved.
7 
8 #ifndef __VRV_PGFOOT_H__
9 #define __VRV_PGFOOT_H__
10 
11 #include "runningelement.h"
12 
13 namespace vrv {
14 
15 //----------------------------------------------------------------------------
16 // PgFoot
17 //----------------------------------------------------------------------------
18 
22 class PgFoot : public RunningElement {
23 public:
29  PgFoot();
30  virtual ~PgFoot();
31  void Reset() override;
32  std::string GetClassName() const override { return "pgFoot"; }
34 
38  int GetTotalHeight(const Doc *doc) const override;
39 
40  //----------//
41  // Functors //
42  //----------//
43 
48  FunctorCode Accept(Functor &functor) override;
49  FunctorCode Accept(ConstFunctor &functor) const override;
50  FunctorCode AcceptEnd(Functor &functor) override;
51  FunctorCode AcceptEnd(ConstFunctor &functor) const override;
53 
54 private:
55  //
56 public:
57  //
58 private:
59  //
60 };
61 
62 } // namespace vrv
63 
64 #endif
This abstract class is the base class for all const functors.
Definition: functor.h:126
This class is a hold the data and corresponds to the model of a MVC design pattern.
Definition: doc.h:41
This abstract class is the base class for all mutable functors.
Definition: functor.h:101
This class represents an MEI pgFoot.
Definition: pgfoot.h:22
FunctorCode Accept(Functor &functor) override
Interface for class functor visitation.
int GetTotalHeight(const Doc *doc) const override
Overriden to get the appropriate margin.
void Reset() override
Reset the object, that is 1) removing all children and 2) resetting all attributes.
This class represents running elements (headers and footers).
Definition: runningelement.h:28