本文整理汇总了C++中Staff::GetStandardNotationStaffBelowSpacing方法的典型用法代码示例。如果您正苦于以下问题:C++ Staff::GetStandardNotationStaffBelowSpacing方法的具体用法?C++ Staff::GetStandardNotationStaffBelowSpacing怎么用?C++ Staff::GetStandardNotationStaffBelowSpacing使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Staff
的用法示例。
在下文中一共展示了Staff::GetStandardNotationStaffBelowSpacing方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: TestCaseStandardNotationStaffBelowSpacing
/// Tests the Standard Notation Staff Below Spacing Functions
/// @return True if all tests were executed, false if not
bool StaffTestSuite::TestCaseStandardNotationStaffBelowSpacing()
{
//------Last Checked------//
// - Jan 5, 2005
Staff staff;
staff.SetStandardNotationStaffBelowSpacing(45);
TEST(wxT("SetStandardNotationStaffBelowSpacing"), staff.GetStandardNotationStaffBelowSpacing() == 45);
return (true);
}
示例2: TestCaseConstructor
/// Tests the Constructors
/// @return True if all tests were executed, false if not
bool StaffTestSuite::TestCaseConstructor()
{
//------Last Checked------//
// - Jan 5, 2005
// TEST CASE: Default Constructor
{
Staff staff;
TEST(wxT("Default Constructor"),
(staff.GetClef() == Staff::DEFAULT_CLEF) &&
(staff.GetTablatureStaffType() == Staff::DEFAULT_TABLATURE_STAFF_TYPE) &&
(staff.GetStandardNotationStaffAboveSpacing() == Staff::DEFAULT_STANDARD_NOTATION_STAFF_ABOVE_SPACING) &&
(staff.GetStandardNotationStaffBelowSpacing() == Staff::DEFAULT_STANDARD_NOTATION_STAFF_BELOW_SPACING) &&
(staff.GetSymbolSpacing() == Staff::DEFAULT_SYMBOL_SPACING) &&
(staff.GetTablatureStaffBelowSpacing() == Staff::DEFAULT_TABLATURE_STAFF_BELOW_SPACING)
);
}
// TEST CASE: Primary Constructor
{
Staff staff(4, Staff::BASS_CLEF);
staff.m_positionArray[0].Add(new Position);
staff.m_positionArray[1].Add(new Position);
TEST(wxT("Copy Constructor"),
(staff.GetClef() == Staff::BASS_CLEF) &&
(staff.GetTablatureStaffType() == 4) &&
(staff.GetStandardNotationStaffAboveSpacing() == Staff::DEFAULT_STANDARD_NOTATION_STAFF_ABOVE_SPACING) &&
(staff.GetStandardNotationStaffBelowSpacing() == Staff::DEFAULT_STANDARD_NOTATION_STAFF_BELOW_SPACING) &&
(staff.GetSymbolSpacing() == Staff::DEFAULT_SYMBOL_SPACING) &&
(staff.GetTablatureStaffBelowSpacing() == Staff::DEFAULT_TABLATURE_STAFF_BELOW_SPACING)
);
}
// TEST CASE: Copy Constructor
{
Staff staff(4, Staff::BASS_CLEF);
staff.m_positionArray[0].Add(new Position);
staff.m_positionArray[1].Add(new Position);
Staff staff2(staff);
TEST(wxT("Copy Constructor"), staff == staff2);
}
return (true);
}