当前位置: 首页>>代码示例>>C++>>正文


C++ Staff::GetStandardNotationStaffBelowSpacing方法代码示例

本文整理汇总了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);
}
开发者ID:BackupTheBerlios,项目名称:ptparser-svn,代码行数:11,代码来源:stafftestsuite.cpp

示例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);
}
开发者ID:BackupTheBerlios,项目名称:ptparser-svn,代码行数:48,代码来源:stafftestsuite.cpp


注:本文中的Staff::GetStandardNotationStaffBelowSpacing方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。