uint32_t TDebugProtocol::writeItem(const std::string& str) { uint32_t size = 0; size += startItem(); size += writePlain(str); size += endItem(); return size; }
uint32_t TDebugProtocol::writeSetEnd() { indentDown(); write_state_.pop_back(); uint32_t size = 0; size += writeIndented("}"); size += endItem(); return size; }
Arrow::~Arrow() { hide(); setToolTip(""); startItem()->removeArrow(this); endItem()->removeArrow(this); handleList.clear(); if(editingMode && manager){ Application* mainApplication = manager->getKnowledgeBase()->getApplication(); manager->getKnowledgeBase()->removeConnectionFromApplication(mainApplication, connection); } }
void AirEntrySystemHoldInInSim::OnFlightExit( AirsideFlightInSim* pFlight,const ElapsedTime& exitTime ) { SetExitTime(pFlight, exitTime); RemoveFlightInQueue(pFlight); //write this Flight logs // writeFlightLog(pFlight,exitTime); // AirsideFlightInSim* pNextFlight = GetFrontFlight(); if(pNextFlight)//wake up the next flight in the hold { FlightGetClearanceEvent* newEvent = new FlightGetClearanceEvent(pNextFlight); newEvent->setTime(exitTime); newEvent->addEvent(); ClearanceItem endItem(this, OnBirth, 0); endItem.SetTime(exitTime); pNextFlight->EndDelay(endItem); } /*OccupancyInstance flightinstance = GetOccupyInstance(pFlight); if(!flightinstance.IsValid() || !flightinstance.IsEnterTimeValid() )return; ElapsedTime entryTime = flightinstance.GetEnterTime();*/ /*if (exitTime - entryTime > 0L) { AirsideConflictionDelayLog * pEnterSysDelay = new AirsideConflictionDelayLog(); pEnterSysDelay->mMode = OnBirth; pEnterSysDelay->mAction = FlightConflict::HOLD_AIR; pEnterSysDelay->mDelayTime = exitTime - entryTime; pEnterSysDelay->time = exitTime; pEnterSysDelay->distInRes = 0; pEnterSysDelay->m_emFlightDelayReason = FltDelayReason_AirHold; pEnterSysDelay->m_sDetailReason = _T("Holding delay"); getDesc(pEnterSysDelay->mAtResource); pEnterSysDelay->mdSpd=0; pEnterSysDelay->mConflictLocation = FlightConflict::BETWEENWAYPOINTS; CString strName = pFlight->GetAirTrafficController()->GetAirsideResourceManager()->GetInSectorNameAndID(pFlight->GetPosition(),pFlight->GetCurState().m_dAlt, pEnterSysDelay->mAreaID); pEnterSysDelay->sAreaName = strName.GetString(); pFlight->LogEventItem(pEnterSysDelay); }*/ }
uint32_t DebugProtocolWriter::writeSetEnd() { popState(); writeIndented("}}"); endItem(); return 0; }
const char *psz_url; const char *psz_name; const char *ppsz_options[2]; const struct shout_item_t * p_children; }; #define endItem( ) { NULL, NULL, { NULL }, NULL } #define item( title, url ) { url, title, { NULL }, NULL } #define itemWithOption( title, url, option ) { url, title, { option, NULL }, NULL } #define itemWithChildren( title, children ) { "vlc://nop", title, { NULL }, children } /* WARN: We support only two levels */ static const struct shout_item_t p_frenchtv_canalplus[] = { itemWithOption( N_("Les Guignols"), "http://www.canalplus.fr/index.php?pid=1784", "http-forward-cookies" ), endItem() }; static const struct shout_item_t p_frenchtv[] = { itemWithChildren( N_("Canal +"), p_frenchtv_canalplus ), endItem() }; static const struct shout_item_t p_items[] = { item( N_("Shoutcast Radio"), "http/shout-winamp://www.shoutcast.com/sbin/newxml.phtml" ), item( N_("Shoutcast TV"), "http/shout-winamp://www.shoutcast.com/sbin/newtvlister.phtml?alltv=1" ), item( N_("Freebox TV"), "http://mafreebox.freebox.fr/freeboxtv/playlist.m3u" ), itemWithChildren(N_("French TV"), p_frenchtv ), endItem() };