sofs19  0.1
FUSE based file system
probing.h
Go to the documentation of this file.
1 
21 #ifndef __SOFS19_PROBING__
22 #define __SOFS19_PROBING__
23 
24 #include <stdio.h>
25 #include <inttypes.h>
26 #include <stdarg.h>
27 #include <errno.h>
28 
29 namespace sofs19
30 {
31 
42  /* *************************************** */
43 
44  extern const char *SOPROBE_RED;
45  extern const char *SOPROBE_GREEN;
46  extern const char *SOPROBE_YELLOW;
47  extern const char *SOPROBE_BLUE;
48  extern const char *SOPROBE_MAGENTA;
49  extern const char *SOPROBE_CYAN;
50 
51  /* *************************************** */
52 
59  void soProbeOpen(FILE * fp, uint32_t lower = 0, uint32_t upper = 1000);
60 
61  /* *************************************** */
62 
66  void soProbeClose(void);
67 
68  /* *************************************** */
69 
75  void soProbeStream(FILE * fp);
76 
77  /* *************************************** */
78 
85  void soProbeSetIDs(uint32_t lower, uint32_t upper);
86 
87  /* *************************************** */
88 
94  void soProbeAddIDs(uint32_t lower, uint32_t upper);
95 
96  /* *************************************** */
97 
103  void soProbeRemoveIDs(uint32_t lower, uint32_t upper);
104 
105  /* *************************************** */
106 
115  void soProbe(uint32_t id, const char *fmt, ...);
116 
117  /* *************************************** */
118 
131  void soProbe(const char *color, uint32_t id, const char *fmt, ...);
132 
133  /* *************************************** */
134 
137 };
138 
139 #endif /* __SOFS19_PROBING__ */
sofs19::SOPROBE_YELLOW
const char * SOPROBE_YELLOW
the yellow probing color
sofs19::SOPROBE_CYAN
const char * SOPROBE_CYAN
the cyan probing color
sofs19::soProbeStream
void soProbeStream(FILE *fp)
Set the probing file stream.
sofs19::SOPROBE_GREEN
const char * SOPROBE_GREEN
the green probing color
sofs19::soProbeOpen
void soProbeOpen(FILE *fp, uint32_t lower=0, uint32_t upper=1000)
Opening of the probing system.
sofs19::SOPROBE_MAGENTA
const char * SOPROBE_MAGENTA
the magenta probing color
sofs19::SOPROBE_BLUE
const char * SOPROBE_BLUE
the blue probing color
sofs19::soProbeSetIDs
void soProbeSetIDs(uint32_t lower, uint32_t upper)
Set probing IDs to the given range.
sofs19::SOPROBE_RED
const char * SOPROBE_RED
the red probing color
sofs19::soProbe
void soProbe(const char *color, uint32_t id, const char *fmt,...)
Print a probing message with given color if ID is visible.
sofs19::soProbeAddIDs
void soProbeAddIDs(uint32_t lower, uint32_t upper)
Add a range of probing IDs.
sofs19::soProbeRemoveIDs
void soProbeRemoveIDs(uint32_t lower, uint32_t upper)
Remove a range of probing IDs.
sofs19::soProbeClose
void soProbeClose(void)
Closing the probing system.