Open
Graph Drawing
Framework

 v. 2020.02 (Catalpa)
 

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 
51 using ogdf::ArrayBuffer;
52 using ogdf::Array;
53 using ogdf::Logger;
54 
55 using std::ostream;
56 using std::ostringstream;
57 using std::setw;
58 using std::string;
59 using std::to_string;
60 using std::ws;
61 
63 
69 public:
71 
74  virtual ~AbacusRoot() { }
75 
76 
78 
83  static const char *onOff(bool value);
84 
86 
91  static double fracPart(double x) {
92  return (x >= 0.0) ? x-floor(x) : ceil(x)-x;
93  }
94 
96 
99  static bool ascii2bool(const string &str);
100 
102  static bool endsWith(const string &str, const string &end);
103 };
104 
105 }
The parameterized class Array implements dynamic arrays of type E.
Definition: Array.h:200
Base class of all other classes of ABACUS.
Definition: abacusroot.h:68
virtual ~AbacusRoot()
The destructor.
Definition: abacusroot.h:74
#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.
An array that keeps track of the number of inserted elements; also usable as an efficient stack...
Definition: Array.h:45
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:91
Contains logging functionality.
Exception thrown when an algorithm realizes an internal bug that prevents it from continuing...
Definition: exceptions.h:253
Centralized global and local logging facility working on streams like std::cout.
Definition: Logger.h:99