Skip to content
Snippets Groups Projects
Select Git revision
  • 352dedabaa7f1d3cf3411b28e7b8a32b64437fcb
  • master default
  • TEMPORARY_MERGE_PR_576
  • TEMPORARY_MERGE_PR_571
  • TEMPORARY_MERGE_PR_544
  • TEMPORARY_MERGE_PR_563
  • pancetta-patch-8
  • fieldsIO
  • neuralpint
  • TEMPORARY_MERGE_PR_525
  • vtk
  • pancetta-patch-7
  • TEMPORARY_MERGE_PR_502
  • TEMPORARY_MERGE_PR_501
  • TEMPORARY_MERGE_PR_498
  • v6
  • new-release
  • TEMPORARY_MERGE_PR_476
  • TEMPORARY_MERGE_PR_480
  • TEMPORARY_MERGE_PR_478
  • fix_JF
  • v5.6
  • v5.5.3
  • v5.5.2
  • v5.5.1
  • 5.5.0
26 results

space_transfer.py

Blame
  • ThreadDataTransfert.cpp 14.24 KiB
    /**
     * @file ThreadDataTransfert.cpp
     * @author   Ulrich Kemloh <kemlohulrich@gmail.com>
     * @version 0.1
     * Copyright (C) <2009-2010>
     *
     * @section LICENSE
     * This file is part of OpenPedSim.
     *
     * OpenPedSim is free software: you can redistribute it and/or modify
     * it under the terms of the GNU General Public License as published by
     * the Free Software Foundation, either version 3 of the License, or
     * any later version.
     *
     * OpenPedSim is distributed in the hope that it will be useful,
     * but WITHOUT ANY WARRANTY; without even the implied warranty of
     * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
     * GNU General Public License for more details.
     *
     * You should have received a copy of the GNU General Public License
     * along with OpenPedSim. If not, see <http://www.gnu.org/licenses/>.
     *
     * @section DESCRIPTION
     * This class provides a thread utility that is charged of
     * asynchronously receive trajectories (streaming)
     * and  put them in the adequate data structure to be read by the Visualisation Thread.
     *
     * \brief Thread that reads data from the socket and parse it
     *
     *
     *
     *  Created on: 24.05.2009
     *
     */
    
    
    #include <cstdlib>
    #include <iostream>
    #include <limits>
    
    
    #include <QtXml/QtXml>
    #include <QtNetwork/QtNetwork>
    #include <QThread>
    #include <QObject>
    #include <QMessageBox>
    #include <QString>
    
    
    #include "SystemSettings.h"
    #include "ThreadDataTransfert.h"
    #include "SyncData.h"
    #include "Frame.h"
    #include "FrameElement.h"
    
    #include "network/TraVisToServer.h"
    #include "geometry/FacilityGeometry.h"
    #include "general/Macros.h"
    #include "Debug.h"
    
    
    //using namespace std;
    
    
    ThreadDataTransfer::ThreadDataTransfer(QObject *parent):
        QThread(parent)
    {
        m_port=SystemSettings::getListeningPort();
        tcpServer=NULL;
        headerParsed=false;