KiCad PCB EDA Suite
tool_event.cpp File Reference
#include <cstring>
#include <string>
#include <tool/tool_event.h>
#include <tool/tool_action.h>
#include <tool/tool_manager.h>

Go to the source code of this file.

Classes

struct  FlagString
 

Functions

static const std::string flag2string (int aFlag, const FlagString *aExps)
 

Function Documentation

static const std::string flag2string ( int  aFlag,
const FlagString aExps 
)
static

Definition at line 40 of file tool_event.cpp.

References FlagString::str.

Referenced by TOOL_EVENT::Format().

41 {
42  std::string rv;
43 
44  for( int i = 0; aExps[i].str.length(); i++ )
45  {
46  if( aExps[i].flag & aFlag )
47  rv += aExps[i].str + " ";
48  }
49 
50  return rv;
51 }
std::string str
Definition: tool_event.cpp:36