RoadLogEvent.h
Go to the documentation of this file.
1 /****************************************************************************
2 **
3 ** Copyright (c) 2008-2015 C.B. Barber. All rights reserved.
4 ** $Id: //main/2015/qhull/src/libqhullcpp/RoadLogEvent.h#1 $$Change: 1981 $
5 ** $DateTime: 2015/09/28 20:26:32 $$Author: bbarber $
6 **
7 ****************************************************************************/
8 
9 #ifndef ROADLOGEVENT_H
10 #define ROADLOGEVENT_H
11 
12 #include <ostream>
13 #include <stdexcept>
14 #include <string>
15 
16 namespace orgQhull {
17 
18 #
19  struct RoadLogEvent;
21 
22 struct RoadLogEvent {
23 
24 public:
25 #
26  const char * format_string;
27  int int_1;
28  int int_2;
29  float float_1;
30  union {
31  const char *cstr_1;
32  const void *void_1;
33  long long int64_1;
34  double double_1;
35  };
36 
37 #
38 
39 #
40  RoadLogEvent() : format_string(0), int_1(0), int_2(0), float_1(0), int64_1(0) {};
41  explicit RoadLogEvent(const char *fmt) : format_string(fmt), int_1(0), int_2(0), float_1(0), int64_1(0) {};
42  RoadLogEvent(const char *fmt, int d) : format_string(fmt), int_1(d), int_2(0), float_1(0), int64_1(0) {};
43  RoadLogEvent(const char *fmt, int d, int d2) : format_string(fmt), int_1(d), int_2(d2), float_1(0), int64_1(0) {};
44  RoadLogEvent(const char *fmt, int d, int d2, float f) : format_string(fmt), int_1(d), int_2(d2), float_1(f), int64_1(0) {};
45  RoadLogEvent(const char *fmt, int d, int d2, float f, const char *s) : format_string(fmt), int_1(d), int_2(d2), float_1(f), cstr_1(s) {};
46  RoadLogEvent(const char *fmt, int d, int d2, float f, const void *x) : format_string(fmt), int_1(d), int_2(d2), float_1(f), void_1(x) {};
47  RoadLogEvent(const char *fmt, int d, int d2, float f, int i) : format_string(fmt), int_1(d), int_2(d2), float_1(f), int64_1(i) {};
48  RoadLogEvent(const char *fmt, int d, int d2, float f, long long i) : format_string(fmt), int_1(d), int_2(d2), float_1(f), int64_1(i) {};
49  RoadLogEvent(const char *fmt, int d, int d2, float f, double g) : format_string(fmt), int_1(d), int_2(d2), float_1(f), double_1(g) {};
52 
53 #
54  bool isValid() const { return format_string!=0; }
55  int int1() const { return int_1; };
56  int int2() const { return int_2; };
57  float float1() const { return float_1; };
58  const char * format() const { return format_string; };
59  const char * cstr1() const { return cstr_1; };
60  const void * void1() const { return void_1; };
61  long long int64() const { return int64_1; };
62  double double1() const { return double_1; };
63 
64 #
65 
66  std::string toString(const char* tag, int code) const;
67 
68 private:
69 #
70  static bool firstExtraCode(std::ostream &os, char c, char *extraCode);
71 
72 
73 };//class RoadLogEvent
74 
75 }//namespace orgQhull
76 
77 #endif // ROADLOGEVENT_H
double double_1
signed int64 (i). Ambiguous if unsigned is also defined.
Definition: RoadLogEvent.h:34
const char * format_string
Definition: RoadLogEvent.h:26
RoadLogEvent(const char *fmt, int d, int d2, float f, long long i)
Definition: RoadLogEvent.h:48
QhullRidge – Qhull&#39;s ridge structure, ridgeT, as a C++ class.
Definition: Coordinates.cpp:21
const char * cstr_1
One additional argument (for logging)
Definition: RoadLogEvent.h:31
RoadLogEvent(const char *fmt)
Definition: RoadLogEvent.h:41
float float_1
Integer argument (d, for logging)
Definition: RoadLogEvent.h:29
int int_2
Integer argument (d, for logging)
Definition: RoadLogEvent.h:28
const char * format() const
Definition: RoadLogEvent.h:58
long long int64() const
Definition: RoadLogEvent.h:61
std::string toString(const char *tag, int code) const
RoadLogEvent(const char *fmt, int d, int d2, float f, double g)
Definition: RoadLogEvent.h:49
double double1() const
Definition: RoadLogEvent.h:62
const void * void_1
Cstr argument (s) – type checked at construct-time.
Definition: RoadLogEvent.h:32
const void * void1() const
Definition: RoadLogEvent.h:60
RoadLogEvent(const char *fmt, int d)
Definition: RoadLogEvent.h:42
fmt
Definition: obb.py:126
RoadLogEvent(const char *fmt, int d, int d2)
Definition: RoadLogEvent.h:43
RoadLogEvent(const char *fmt, int d, int d2, float f, const void *x)
Definition: RoadLogEvent.h:46
float float1() const
Definition: RoadLogEvent.h:57
RoadLogEvent(const char *fmt, int d, int d2, float f, int i)
Definition: RoadLogEvent.h:47
long long int64_1
Void* argument (x) – Use upper-case codes for object types.
Definition: RoadLogEvent.h:33
const char * cstr1() const
Definition: RoadLogEvent.h:59
RoadLogEvent(const char *fmt, int d, int d2, float f)
Definition: RoadLogEvent.h:44
RoadLogEvent(const char *fmt, int d, int d2, float f, const char *s)
Definition: RoadLogEvent.h:45
int int_1
Format string (a literal with format codes, for logging)
Definition: RoadLogEvent.h:27


hpp-fcl
Author(s):
autogenerated on Fri Jun 2 2023 02:39:02