/// Primary Constructor /// @param system Zero-based index of the system where the guitar in is anchored /// @param staff Zero-based inded of the staff within the system where the /// guitar in is anchored /// @param position Zero-based index of the position within the system where the /// guitar in is anchored /// @param staffGuitars A bit map representing the guitars to set on the staff /// (bit 1 = guitar 0, bit 2 = guitar 1, etc.) /// @param rhythmSlashGuitars A bit map representing the guitars to set for the /// rhythm slashes (bit 1 = guitar 0, bit 2 = guitar 1, etc.) GuitarIn::GuitarIn(wxUint32 system, wxUint32 staff, wxUint32 position, wxByte staffGuitars, wxByte rhythmSlashGuitars) : m_system(DEFAULT_SYSTEM), m_staff(DEFAULT_STAFF), m_position(DEFAULT_POSITION), m_data(DEFAULT_DATA) { //------Last Checked------// // - Jan 25, 2005 wxASSERT(IsValidSystem(system)); wxASSERT(IsValidStaff(staff)); wxASSERT(IsValidPosition(position)); SetSystem(system); SetStaff(staff); SetPosition(position); SetStaffGuitars(staffGuitars); SetRhythmSlashGuitars(rhythmSlashGuitars); }
u_int64_t cs_accountflagmap(reguser *rup) { authname a2, *a = &a2; a->flags = 0; if(UIsOper(rup)) SetOperFlag(a); if(UIsDev(rup)) SetDeveloper(a); if(UIsAdmin(rup)) SetAdmin(a); if(UIsStaff(rup)) SetStaff(a); if(UIsHelper(rup)) SetSupport(a); return a->flags; }