Previous: bell Operators, Up: The bell Class



3.4.4 Other functions

— Function: bell& bell::from_char (char c);

This function interprets the character c as a bell, and assigns that value to the bell object. See the next function for the mapping between characters and bells. If the character does not represent a valid bell, then an exception of the class bell::invalid is thrown; if you have disabled exceptions, the bell is set to the value bell::MAX_BELLS. The function returns *this.

— Function: char bell::to_char (void) const;

This function returns a character indicating the bell represented by the object. The characters used are, in order:

          1234567890ETABCDFGHJKLMNPQRSUVWYZ