Open
Graph Drawing
Framework

 v. snapshot-2017-02-16
 

abacusroot.h
Go to the documentation of this file.
1 
29 #pragma once
30 
31 #include <ogdf/basic/Logger.h>
32 #include <ogdf/basic/Array.h>
33 #include <ogdf/basic/ArrayBuffer.h>
34 
35 #include <iomanip>
36 #include <sstream>
37 
38 
39 // TODO: just a temporary fix
40 #ifdef _MSC_VER
41 #pragma warning(disable : 4996)
42 #endif
43 
44 
45 #define ABACUS_VERSION 301
46 #define ABACUS_VERSION_STRING "3.0.1/OGDF"
47 
48 namespace abacus {
49 
50 using std::ws;
51 using std::ostringstream;
52 using std::endl;
53 using std::flush;
54 using std::setw;
55 
56 using namespace ogdf;
57 
59 
65 public:
67 
70  virtual ~AbacusRoot() { }
71 
72 
74 
79  static const char *onOff(bool value);
80 
82 
87  static double fracPart(double x) {
88  return (x >= 0.0) ? x-floor(x) : ceil(x)-x;
89  }
90 
92 
95  static bool ascii2bool(const string &str);
96 
98  static bool endsWith(const string &str, const string &end);
99 };
100 
101 } //namespace abacus
Base class of all other classes of ABACUS.
Definition: abacusroot.h:64
virtual ~AbacusRoot()
The destructor.
Definition: abacusroot.h:70
#define OGDF_EXPORT
Specifies that a function or class is exported by the OGDF DLL.
Definition: config.h:99
Declaration and implementation of ArrayBuffer class.
Declaration and implementation of Array class and Array algorithms.
static double fracPart(double x)
Returns the absolute value of the fractional part of x.
Definition: abacusroot.h:87
Contains logging functionality.
The namespace for all OGDF objects.