Skip to content

Commit

Permalink
Tidying up headers include
Browse files Browse the repository at this point in the history
  • Loading branch information
lpugin committed Aug 25, 2014
1 parent 2c98e76 commit c86d03c
Show file tree
Hide file tree
Showing 42 changed files with 105 additions and 65 deletions.
2 changes: 2 additions & 0 deletions include/vrv/att.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@

#include <string>

//----------------------------------------------------------------------------

#include "attdef.h"

namespace vrv {
Expand Down
2 changes: 1 addition & 1 deletion include/vrv/barline.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
#ifndef __VRV_BARLINE_H__
#define __VRV_BARLINE_H__

#include "layerelement.h"
#include "atts_shared.h"
#include "layerelement.h"

namespace vrv {

Expand Down
4 changes: 2 additions & 2 deletions include/vrv/clef.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
#ifndef __VRV_CLEF_H__
#define __VRV_CLEF_H__

#include "vrvdef.h"
#include "layerelement.h"
#include "atts_shared.h"
#include "layerelement.h"
#include "vrvdef.h"

namespace vrv {

Expand Down
6 changes: 4 additions & 2 deletions include/vrv/interfacecontroller.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,13 @@
#ifndef __VRV_CONTROLLER_H__
#define __VRV_CONTROLLER_H__

#include <string>

//----------------------------------------------------------------------------

#include "doc.h"
#include "view.h"

#include <string>

namespace vrv {

typedef enum _file_formats {
Expand Down
2 changes: 2 additions & 0 deletions include/vrv/iodarms.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
#include <string>
#include <vector>

//----------------------------------------------------------------------------

#include "io.h"

namespace vrv {
Expand Down
1 change: 0 additions & 1 deletion include/vrv/iomei.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
#define __VRV_IOMEI_H__

#include "doc.h"

#include "pugixml.hpp"

namespace vrv {
Expand Down
3 changes: 1 addition & 2 deletions include/vrv/iomusxml.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,8 @@

#include "doc.h"
#include "layer.h"
#include "tie.h"

#include "pugixml.hpp"
#include "tie.h"

namespace vrv {

Expand Down
2 changes: 2 additions & 0 deletions include/vrv/iopae.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
#include <string>
#include <vector>

//----------------------------------------------------------------------------

#include "io.h"
#include "vrvdef.h"

Expand Down
4 changes: 2 additions & 2 deletions include/vrv/keysig.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@
#ifndef __VRV_KEYSIG_H__
#define __VRV_KEYSIG_H__

#include "vrvdef.h"
#include "layerelement.h"
#include "atts_shared.h"
#include "layerelement.h"
#include "vrvdef.h"

namespace vrv {

Expand Down
6 changes: 4 additions & 2 deletions include/vrv/layer.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,15 @@
#ifndef __VRV_LAYER_H__
#define __VRV_LAYER_H__

#include <typeinfo>

//----------------------------------------------------------------------------

#include "atts_shared.h"
#include "clef.h"
#include "object.h"
#include "scoredef.h"

#include <typeinfo>

namespace vrv {

class DeviceContext;
Expand Down
2 changes: 1 addition & 1 deletion include/vrv/layerelement.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
#define __VRV_LAYER_ELEMENT_H__

#include "devicecontext.h" // for MusPoint
#include "vrvdef.h"
#include "object.h"
#include "vrvdef.h"

namespace vrv {

Expand Down
6 changes: 2 additions & 4 deletions include/vrv/measure.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,10 @@
#ifndef __VRV_MEASURE_H__
#define __VRV_MEASURE_H__

#include "object.h"

#include "aligner.h"
#include "barline.h"

#include "atts_shared.h"
#include "barline.h"
#include "object.h"

namespace vrv {

Expand Down
4 changes: 2 additions & 2 deletions include/vrv/mensur.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
#ifndef __VRV_MENSUR_H__
#define __VRV_MENSUR_H__

#include "layerelement.h"
#include "atts_shared.h"
#include "atts_mensural.h"
#include "atts_shared.h"
#include "layerelement.h"

namespace vrv {

Expand Down
2 changes: 1 addition & 1 deletion include/vrv/metersig.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
#ifndef __VRV_METERSIG_H__
#define __VRV_METERSIG_H__

#include "layerelement.h"
#include "atts_shared.h"
#include "layerelement.h"

namespace vrv {

Expand Down
1 change: 0 additions & 1 deletion include/vrv/mrest.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
#ifndef __VRV_MREST_H__
#define __VRV_MREST_H__

#include "vrvdef.h"
#include "layerelement.h"

namespace vrv {
Expand Down
1 change: 0 additions & 1 deletion include/vrv/multirest.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
#ifndef __VRV_MULTIREST_H__
#define __VRV_MULTIREST_H__

#include "vrvdef.h"
#include "layerelement.h"

namespace vrv {
Expand Down
2 changes: 2 additions & 0 deletions include/vrv/object.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
#include <typeinfo>
#include <vector>

//----------------------------------------------------------------------------

#include "vrvdef.h"

namespace vrv {
Expand Down
6 changes: 4 additions & 2 deletions include/vrv/svgdevicecontext.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,16 @@
#ifndef __VRV_SVG_DC_H__
#define __VRV_SVG_DC_H__

#include "devicecontext.h"

#include <iostream>
#include <fstream>
#include <sstream>
#include <string>
#include <vector>

//----------------------------------------------------------------------------

#include "devicecontext.h"

namespace vrv {

//----------------------------------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion include/vrv/symbol.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
#ifndef __VRV_SYMBOL_H__
#define __VRV_SYMBOL_H__

#include "vrvdef.h"
#include "layerelement.h"
#include "positioninterface.h"
#include "vrvdef.h"

namespace vrv {

Expand Down
2 changes: 2 additions & 0 deletions include/vrv/view.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@

#include <typeinfo>

//----------------------------------------------------------------------------

#include "devicecontext.h"
#include "scoredef.h"
#include "vrvdef.h"
Expand Down
6 changes: 4 additions & 2 deletions include/vrv/vrvdef.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,12 @@
#ifndef __VRV_DEF_H__
#define __VRV_DEF_H__

#include "attdef.h"

#include <algorithm>

//----------------------------------------------------------------------------

#include "attdef.h"

namespace vrv {

//----------------------------------------------------------------------------
Expand Down
1 change: 0 additions & 1 deletion src/aligner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
//----------------------------------------------------------------------------

#include "vrv.h"
#include "layerelement.h"

namespace vrv {

Expand Down
3 changes: 1 addition & 2 deletions src/bboxdevicecontext.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@

//----------------------------------------------------------------------------

#include "vrvdef.h"
#include "leipzigbbox.h"
#include "view.h"

Expand Down Expand Up @@ -461,4 +460,4 @@ void BBoxDeviceContext::FindPointsForBounds(MusPoint P0, MusPoint P1, MusPoint P
ret[3] = (int)yMax;
}

} // namespace vrv
} // namespace vrv
6 changes: 5 additions & 1 deletion src/beam.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,13 @@
// Copyright (c) Authors and others. All rights reserved.
/////////////////////////////////////////////////////////////////////////////

#include "vrv.h"

#include "beam.h"

//----------------------------------------------------------------------------

#include "vrv.h"

namespace vrv {

//----------------------------------------------------------------------------
Expand Down
14 changes: 7 additions & 7 deletions src/doc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,25 +10,25 @@

//----------------------------------------------------------------------------

#include "vrv.h"
#include <assert.h>
#include <math.h>

//----------------------------------------------------------------------------

#include "layer.h"
#include "layerelement.h"
#include "page.h"
#include "staff.h"
#include "system.h"
#include "verse.h"
#include "vrv.h"

//----------------------------------------------------------------------------

#include <assert.h>
#include <math.h>
namespace vrv {

//----------------------------------------------------------------------------
// Doc
//----------------------------------------------------------------------------

namespace vrv {

Doc::Doc() :
Object("doc-")
{
Expand Down
2 changes: 1 addition & 1 deletion src/durationinterface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@

//----------------------------------------------------------------------------

#include "beam.h"
#include "vrv.h"
#include "vrvdef.h"
#include "beam.h"

namespace vrv {

Expand Down
2 changes: 1 addition & 1 deletion src/interfacecontroller.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
#include "iomusxml.h"
#include "iopae.h"
#include "page.h"
#include "view.h"
#include "svgdevicecontext.h"
#include "view.h"

#ifdef USE_EMSCRIPTEN
#include "jsonxx.h"
Expand Down
2 changes: 1 addition & 1 deletion src/iomei.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@

//----------------------------------------------------------------------------

#include "vrv.h"
#include "app.h"
#include "barline.h"
#include "beam.h"
Expand All @@ -40,6 +39,7 @@
#include "system.h"
#include "tuplet.h"
#include "verse.h"
#include "vrv.h"

namespace vrv {

Expand Down
5 changes: 1 addition & 4 deletions src/iopae.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

//----------------------------------------------------------------------------

#include <assert.h>
#include <cstring>
#include <iostream>
#include <fstream>
Expand All @@ -18,10 +19,6 @@

//----------------------------------------------------------------------------

#include <assert.h>

//----------------------------------------------------------------------------

#include "barline.h"
#include "clef.h"
#include "doc.h"
Expand Down
2 changes: 1 addition & 1 deletion src/layer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
//----------------------------------------------------------------------------

#include "clef.h"
#include "vrvdef.h"
#include "doc.h"
#include "keysig.h"
#include "io.h"
Expand All @@ -24,6 +23,7 @@
#include "metersig.h"
#include "note.h"
#include "symbol.h"
#include "vrvdef.h"

namespace vrv {

Expand Down
Loading

0 comments on commit c86d03c

Please sign in to comment.