Commit abd22ad9 authored by Axel Auweter's avatar Axel Auweter
Browse files

Add LGPL headers to generic includes.

parent cc6af147
/* //================================================================================
* abrt.h // Name : abrt.h
* // Author : Axel Auweter
* Created on: Mar 24, 2015 // Copyright : Leibniz Supercomputing Centre
* Author: Axel Auweter // Description : Generic function for handling application crashes with backtrace
*/ //================================================================================
//================================================================================
// This file is part of DCDB (DataCenter DataBase)
// Copyright (C) 2011-2016 Leibniz Supercomputing Centre
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 2.1 of the License, or (at your option) any later version.
//
// This library 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
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with this library; if not, write to the Free Software
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
//================================================================================
#include <stdio.h> #include <stdio.h>
#include <execinfo.h> #include <execinfo.h>
......
/* //================================================================================
* endian.h // Name : dcdbdaemon.h
* // Author : Axel Auweter
* Created on: May 17, 2015 // Copyright : Leibniz Supercomputing Centre
* Author: Axel Auweter // Description : Generic function for daemonizing an application
*/ //================================================================================
//================================================================================
// This file is part of DCDB (DataCenter DataBase)
// Copyright (C) 2011-2016 Leibniz Supercomputing Centre
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 2.1 of the License, or (at your option) any later version.
//
// This library 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
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with this library; if not, write to the Free Software
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
//================================================================================
#ifndef DCDBDAEMON_H #ifndef DCDBDAEMON_H
#define DCDBDAEMON_H #define DCDBDAEMON_H
......
/* //================================================================================
* endian.h // Name : dcdbendian.h
* // Author : Axel Auweter
* Created on: Apr 6, 2014 // Copyright : Leibniz Supercomputing Centre
* Author: Axel Auweter // Description : Generic functions for handling endianess in DCDB
*/ //================================================================================
//================================================================================
// This file is part of DCDB (DataCenter DataBase)
// Copyright (C) 2011-2016 Leibniz Supercomputing Centre
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 2.1 of the License, or (at your option) any later version.
//
// This library 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
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with this library; if not, write to the Free Software
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
//================================================================================
#ifndef DCDBENDIAN_H #ifndef DCDBENDIAN_H
#define DCDBENDIAN_H #define DCDBENDIAN_H
......
/* //================================================================================
* messaging.h // Name : messaging.h
* // Author : Daniele Tafani
* Created on: Mar 20, 2014 // Copyright : Leibniz Supercomputing Centre
* Author: Daniele Tafani // Description : Generic functions and types for DCDB MQTT messages
*/ //================================================================================
#include <boost/thread/mutex.hpp> //================================================================================
// This file is part of DCDB (DataCenter DataBase)
// Copyright (C) 2011-2016 Leibniz Supercomputing Centre
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 2.1 of the License, or (at your option) any later version.
//
// This library 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
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with this library; if not, write to the Free Software
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
//================================================================================
#include <boost/date_time/posix_time/posix_time.hpp>
#ifndef MESSAGING_H_ #ifndef MESSAGING_H_
#define MESSAGING_H_ #define MESSAGING_H_
...@@ -17,16 +36,15 @@ typedef struct { ...@@ -17,16 +36,15 @@ typedef struct {
class Messaging class Messaging
{ {
public: public:
static uint64_t calculateTimestamp() { static uint64_t calculateTimestamp() {
boost::posix_time::ptime epoch(boost::gregorian::date(1970,1,1));
boost::posix_time::ptime epoch(boost::gregorian::date(1970,1,1)); boost::posix_time::ptime now = boost::posix_time::microsec_clock::universal_time();
boost::posix_time::ptime now = boost::posix_time::microsec_clock::universal_time(); boost::posix_time::time_duration diff = now - epoch;
boost::posix_time::time_duration diff = now - epoch;
return diff.total_nanoseconds();
return diff.total_nanoseconds(); }
}
}; };
#endif /* MESSAGING_H_ */ #endif /* MESSAGING_H_ */
/* //================================================================================
* pusherpqueue.h // Name : pusherpqeue.h
* // Author : Axel Auweter
* Created on: Aug 29, 2013 // Copyright : Leibniz Supercomputing Centre
* Author: Axel Auweter // Description : Template class for priority queues used by various DCDB pushers
*/ //================================================================================
//================================================================================
// This file is part of DCDB (DataCenter DataBase)
// Copyright (C) 2011-2016 Leibniz Supercomputing Centre
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 2.1 of the License, or (at your option) any later version.
//
// This library 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
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with this library; if not, write to the Free Software
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
//================================================================================
#include <list> #include <list>
#include <boost/date_time/posix_time/posix_time.hpp> #include <boost/date_time/posix_time/posix_time.hpp>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment