Skip to content
Snippets Groups Projects
Select Git revision
  • 6fe92720ce05b2c2904a8bf34b51bb87fd30c24c
  • main default protected
2 results

almalinux.8.dockerfile

Blame
  • ThreadDataTransfert.h 3.62 KiB
    /**
    * @headerfile 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
    *
    */
    
    
    
    #ifndef THREADDATATRANSFERT_H_
    #define THREADDATATRANSFERT_H_
    
    #include <QThread>
    #include <QObject>
    #include <QtNetwork/QtNetwork>
    
    class QThread;
    class QObject;
    class SyncData;
    class QDomNode;
    class QString;
    class QDomNodeList;
    class FacilityGeometry;
    
    extern SyncData extern_trajectories_firstSet;
    extern bool extern_shutdown_visual_thread;
    
    class ThreadDataTransfer: public QThread {
    
        Q_OBJECT
    
    public:
        ThreadDataTransfer(QObject *parent = 0);
        virtual ~ThreadDataTransfer();
        void run();
        void setListeningPort(int port);
    
        /// \brief force the thread to do some cleaning work and shutdown
        void shutdown();
    
        /// parse a shape node
        void parseShapeNode(QDomNode shapes);