code: def get_id_from_cstring(name):
          
          for key in list(LogTocElement.types.keys()):
              if (LogTocElement.types[key][0] == name):
                  return key
          raise KeyError('Type [%s] not found in LogTocElement.types!' % name)
docs: Return variable type id given the C-storage name