Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
dcdb
dcdb
Commits
abd22ad9
Commit
abd22ad9
authored
May 11, 2016
by
Axel Auweter
Browse files
Add LGPL headers to generic includes.
parent
cc6af147
Changes
5
Hide whitespace changes
Inline
Side-by-side
include/abrt.h
View file @
abd22ad9
/*
* abrt.h
*
* Created on: Mar 24, 2015
* Author: Axel Auweter
*/
//================================================================================
// Name : abrt.h
// Author : Axel Auweter
// Copyright : Leibniz Supercomputing Centre
// 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
<execinfo.h>
...
...
include/dcdbdaemon.h
View file @
abd22ad9
/*
* endian.h
*
* Created on: May 17, 2015
* Author: Axel Auweter
*/
//================================================================================
// Name : dcdbdaemon.h
// Author : Axel Auweter
// Copyright : Leibniz Supercomputing Centre
// 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
#define DCDBDAEMON_H
...
...
include/dcdbendian.h
View file @
abd22ad9
/*
* endian.h
*
* Created on: Apr 6, 2014
* Author: Axel Auweter
*/
//================================================================================
// Name : dcdbendian.h
// Author : Axel Auweter
// Copyright : Leibniz Supercomputing Centre
// 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
#define DCDBENDIAN_H
...
...
include/messaging.h
View file @
abd22ad9
/
*
*
messaging.h
*
* Created on: Mar 20, 2014
* Author: Daniele Tafani
*/
/
/================================================================================
// Name :
messaging.h
// Author : Daniele Tafani
// Copyright : Leibniz Supercomputing Centre
// 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_
#define MESSAGING_H_
...
...
@@ -17,16 +36,15 @@ typedef struct {
class
Messaging
{
public:
static
uint64_t
calculateTimestamp
()
{
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
::
time_duration
diff
=
now
-
epoch
;
return
diff
.
total_nanoseconds
();
}
public:
static
uint64_t
calculateTimestamp
()
{
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
::
time_duration
diff
=
now
-
epoch
;
return
diff
.
total_nanoseconds
();
}
};
#endif
/* MESSAGING_H_ */
include/pusherpqueue.h
View file @
abd22ad9
/*
* pusherpqueue.h
*
* Created on: Aug 29, 2013
* Author: Axel Auweter
*/
//================================================================================
// Name : pusherpqeue.h
// Author : Axel Auweter
// Copyright : Leibniz Supercomputing Centre
// 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
<boost/date_time/posix_time/posix_time.hpp>
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment