Imported CSS files

This commit is contained in:
Sakbe
2019-10-21 16:02:55 +01:00
parent 22146b8413
commit 87401e8c95
365 changed files with 1092613 additions and 0 deletions

View File

@@ -0,0 +1,102 @@
/*
* Copyright 2011 EFDA | European Fusion Development Agreement
*
* Licensed under the EUPL, Version 1.1 or - as soon they
will be approved by the European Commission - subsequent
versions of the EUPL (the "Licence");
* You may not use this work except in compliance with the
Licence.
* You may obtain a copy of the Licence at:
*
* http://ec.europa.eu/idabc/eupl
*
* Unless required by applicable law or agreed to in
writing, software distributed under the Licence is
distributed on an "AS IS" basis,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
express or implied.
* See the Licence for the specific language governing
permissions and limitations under the Licence.
*
* $Id: MessageTriggeringTimeService.h 3 2012-01-15 16:26:07Z aneto $
*
**/
/**
* @file
* Forwards text messages received using a TCP interface to a BaseLib2/MARTe object
* The syntax of the message is: DESTINATION|CODE|CONTENT
*/
#ifndef TCP_MESSAGE_HANDLER_H
#define TCP_MESSAGE_HANDLER_H
#include "GCReferenceContainer.h"
#include "CDBExtended.h"
#include "TCPSocket.h"
#include "MessageHandler.h"
OBJECT_DLL(TCPMessageHandler)
class TCPMessageHandler : public GCNamedObject, public MessageHandler{
OBJECT_DLL_STUFF(TCPMessageHandler)
private:
/**
* Handle connection requests
*/
friend void ConnectionHandlerFn(TCPMessageHandler &tcpmh);
bool ConnectionHandler();
/**
* Handle the client requests and forward as messages
**/
void ClientHandler(TCPSocket *client);
/**
* Parse the client request and send the message
*/
bool HandleRequest(FString &msg, TCPSocket *client);
/**
* This flag is true while the TCP server is supposed to be running
*/
bool keepAlive;
/**
* TCP server port
*/
int32 serverPort;
/**
* The server socket
*/
TCPSocket server;
/**
* The TCP server thread identifier
*/
int32 serverTID;
/**
* The TCP server cpu mask
*/
int32 cpuMask;
/**
* Timeout to send the messages
*/
TimeoutType msgTimeout;
public:
TCPMessageHandler();
virtual ~TCPMessageHandler();
/**
* @sa Object::ObjectLoadSetup
*/
virtual bool ObjectLoadSetup(
ConfigurationDataBase & info,
StreamInterface * err);
};
#endif