-
Notifications
You must be signed in to change notification settings - Fork 187
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of https://github.com/rism-ch/verovio
- Loading branch information
Showing
13 changed files
with
180 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
///////////////////////////////////////////////////////////////////////////// | ||
// Name: attributes.h | ||
// Author: Laurent Pugin | ||
// Created: 2014 | ||
// Copyright (c) Authors and others. All rights reserved. | ||
///////////////////////////////////////////////////////////////////////////// | ||
|
||
|
||
#ifndef __VRV_ATTRIBUTES_H__ | ||
#define __VRV_ATTRIBUTES_H__ | ||
|
||
#include <string> | ||
|
||
namespace vrv { | ||
|
||
//---------------------------------------------------------------------------- | ||
// Common | ||
//---------------------------------------------------------------------------- | ||
|
||
/** | ||
* This class is an interface for elements with the MEI att.common. | ||
*/ | ||
class Common | ||
{ | ||
public: | ||
// constructors and destructors | ||
Common(); | ||
virtual ~Common(); | ||
|
||
/** reset the attribute values */ | ||
void ClearAttCommon(); | ||
|
||
/** | ||
* @name Setter and getter for the label | ||
* This can be different from the index position in the parent measure. | ||
*/ | ||
///@{ | ||
std::string GetLabel() const { return m_label; }; | ||
void SetLabel( std::string label ) { m_label = label; }; | ||
///@} | ||
|
||
/** | ||
* @name Setter and getter for the n . | ||
* This can be different from the index position in the parent measure. | ||
*/ | ||
///@{ | ||
int GetN() const { return m_n; }; | ||
void SetN( int n ) { m_n = n; }; | ||
///@} | ||
|
||
|
||
protected: | ||
/** Provides a label for the element */ | ||
std::string m_label; | ||
/** Indicates a name or number */ | ||
int m_n; | ||
}; | ||
|
||
|
||
} // namespace vrv | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
///////////////////////////////////////////////////////////////////////////// | ||
// Name: attributes.cpp | ||
// Author: Laurent Pugin | ||
// Created: 2014 | ||
// Copyright (c) Authors and others. All rights reserved. | ||
///////////////////////////////////////////////////////////////////////////// | ||
|
||
|
||
#include "attributes.h" | ||
|
||
//---------------------------------------------------------------------------- | ||
|
||
#include "vrvdef.h" | ||
|
||
namespace vrv { | ||
|
||
//---------------------------------------------------------------------------- | ||
// Common | ||
//---------------------------------------------------------------------------- | ||
|
||
Common::Common() | ||
{ | ||
this->ClearAttCommon(); | ||
} | ||
|
||
Common::~Common() | ||
{ | ||
} | ||
|
||
void Common::ClearAttCommon() | ||
{ | ||
m_n = VRV_UNSET; | ||
} | ||
|
||
} // namespace vrv |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters