void SimpleType::error(std::string msg) { msg += "SimpleType::error()"; SchemaParserException spe(msg); throw spe; return; }
void DirectoryTree::OnLeftMouseDown(wxMouseEvent& evt) { int nFlags = 0; wxTreeItemId tid = HitTest(evt.GetPosition(), nFlags); if(!tid.IsOk()) return; wxLogTrace(DIRECTORYTREE_EVENTS, wxT("OnLeftMouseDown()")); if(nFlags & wxTREE_HITTEST_ONITEMBUTTON) { wxLogTrace(DIRECTORYTREE_EVENTS, wxT("\tToggling")); Toggle(tid); return; } int nSelectClick = (nFlags & (wxTREE_HITTEST_ONITEMICON | wxTREE_HITTEST_ONITEMLABEL)); if(nSelectClick == 0) return; wxString sPath; bool bGotPath = GetItemPath(tid, sPath); if(!bGotPath) { wxLogDebug(wxT("DirectoryTree::OnLeftMouseDown(): GetItemPath() failed.")); return; } shSetPathEvent spe(sPath); m_wndParent->GetEventHandler()->ProcessEvent(spe); }
int main(int argc, char** argv) { ros::init(argc, argv, "sound_position_exploitation"); ros::NodeHandle n; SourcePositionExploitation spe(n); ros::spin(); return 0; }