original_docstring: Writes the cmd cmd_flags constant.
docstring: Writes the cmd cmd_flags constant.
docstring_tokens: Writes the cmd cmd_flags constant .
code: def WriteCmdFlag(self, file):
      """Writes the cmd cmd_flags constant."""
      flags = []
      # By default trace only at the highest level 3.
      trace_level = int(self.GetInfo('trace_level', default = 3))
      if trace_level not in xrange(0, 4):
        raise KeyError("Unhandled trace_level: %d" % trace_level)
  
      flags.append('CMD_FLAG_SET_TRACE_LEVEL(%d)' % trace_level)
  
      if len(flags) > 0:
        cmd_flags = ' | '.join(flags)
      else:
        cmd_flags = 0
  
      file.Write("  static const uint8 cmd_flags = %s;\n" % cmd_flags)
code_tokens: def WriteCmdFlag ( self , file ) : flags = [ ] trace_level = int ( self . GetInfo ( 'trace_level' , default = 3 ) ) if trace_level not in xrange ( 0 , 4 ) : raise KeyError ( "Unhandled trace_level: %d" % trace_level ) flags . append ( 'CMD_FLAG_SET_TRACE_LEVEL(%d)' % trace_level ) if len ( flags ) > 0 : cmd_flags = ' | ' . join ( flags ) else : cmd_flags = 0 file . Write ( "  static const uint8 cmd_flags = %s;\n" % cmd_flags )
short_docstring: Writes the cmd cmd_flags constant.
short_docstring_tokens: Writes the cmd cmd_flags constant .
comment: """Writes the cmd cmd_flags constant."""$SEP$# By default trace only at the highest level 3.