The general tests of validity and equality are provided, as well as some tests of the general characteristics of a bank type. For example,
TRY_Bank_Type no_type ; // default constructor puts it into invalid state
if (no_type.is_invalid())
{ // yes, no_type is invalid
}
TRY_Bank_Type LRID_type("8I4) ;
TRY_Bank_Type CMUO_type("(23I4,46R4)") ;
if (LRID_type != CMUO_type)
{ // Of course, they are not equal
}
if (LRID_Type.is_mono_type())
{ // Yes, it is a mono-type description
}
if (CMUO_Type.is_mixed_type())
{ // Yes, it is a mixed-type description
}
int4 n_words1 = LRID_type.n_type_words() ; // number of words in type description
int4 n_words2 = LRID_type.n_data_words() ; // number of data words described
One can access the string or vector representation of a bank type using
a_string = my_bank_type.as_string() ; // Easier to print out and read a_vector = my_bank_type.as_vector() ; // Easier to store in bank type section