00001 #ifndef _AtmoChannelAssignment_ 00002 #define _AtmoChannelAssignment_ 00003 00004 #include "AtmoDefs.h" 00005 00006 class CAtmoChannelAssignment 00007 { 00008 protected: 00009 // name of the mapping (for menus and lists) 00010 char *m_psz_name; 00011 // count of channels starting with 0 ... X for which a mapping exists! 00012 int m_num_channels; 00013 // array were each destination channel - has an index to the source zone to use 00014 // or -1 to show black output on this channel 00015 int *m_mappings; 00016 00017 public: 00018 CAtmoChannelAssignment(void); 00019 CAtmoChannelAssignment(CAtmoChannelAssignment &source); 00020 ~CAtmoChannelAssignment(void); 00021 00022 public: 00023 // internal used to mark a not modifyable definition 00024 // with a default assignment! 00025 ATMO_BOOL system; 00026 char *getName() { return(m_psz_name); } 00027 void setName(const char *pszNewName); 00028 00029 void setSize(int numChannels); 00030 int getSize() { return m_num_channels; } 00031 int *getMapArrayClone(int &count); 00032 int getZoneIndex(int channel); 00033 void setZoneIndex(int channel, int zone); 00034 }; 00035 00036 #endif
1.5.6