Rudiments
sensitivevalue.h
1// Copyright (c) 1999-2018 David Muse
2// See the COPYING file for more information.
3
4#ifndef RUDIMENTS_SENSITIVEVALUE_H
5#define RUDIMENTS_SENSITIVEVALUE_H
6
7#include <rudiments/private/sensitivevalueincludes.h>
8
12enum sensitivevalue_format_t {
13 FORMAT_TEXT=0,
14 FORMAT_BINARY,
15 FORMAT_HEX
16};
17
18class RUDIMENTS_DLLSPEC sensitivevalue {
19 public:
20
23
26
30 void setIncludeStart(const char *delimiter);
31
36
40 void setIncludeEnd(const char *delimiter);
41
45 void setIncludeEnd(const char *delimiter, uint64_t len);
46
50 void setVerbatimFormat(sensitivevalue_format_t format);
51
55 void setFileFormat(sensitivevalue_format_t format);
56
61
64 void setPath(const char *path);
65
68 void setPath(const char *path, uint64_t len);
69
72 void setTextExtension(const char *ext);
73
76 void setTextExtension(const char *ext, uint64_t len);
77
80 void setBinaryExtension(const char *ext);
81
84 void setBinaryExtension(const char *ext, uint64_t len);
85
88 void setHexExtension(const char *ext);
89
92 void setHexExtension(const char *ext, uint64_t len);
93
97 const char *getIncludeStart();
98
104
108 const char *getIncludeEnd();
109
115
118 sensitivevalue_format_t getVerbatimFormat();
119
122 sensitivevalue_format_t getFileFormat();
123
128
130 const char *getPath();
131
134
137 const char *getTextExtension();
138
142
145 const char *getBinaryExtension();
146
150
153 const char *getHexExtension();
154
158
288 void parse(const char *in);
289
292 void parse(const char *in, uint64_t inlen);
293
295 const byte_t *getValue();
296
305
313
315 const char *getTextValue();
316
325
333
346 bool clear();
347
353 bool reset();
354
355 #include <rudiments/private/sensitivevalue.h>
356};
357
358#endif
Definition avltree.h:11
Definition sensitivevalue.h:18
const char * getPath()
void setChompTextFile(bool chomptextfile)
void setBinaryExtension(const char *ext, uint64_t len)
const char * getTextValue()
uint64_t getTextExtensionLength()
const char * getIncludeStart()
void parse(const char *in, uint64_t inlen)
void setVerbatimFormat(sensitivevalue_format_t format)
uint64_t getTextValueLength()
byte_t * detachValue()
uint64_t getValueSize()
const char * getTextExtension()
void setIncludeEnd(const char *delimiter, uint64_t len)
uint64_t getHexExtensionLength()
bool getChompTextFile()
sensitivevalue_format_t getVerbatimFormat()
const char * getIncludeEnd()
sensitivevalue_format_t getFileFormat()
void parse(const char *in)
void setTextExtension(const char *ext, uint64_t len)
void setIncludeStart(const char *delimiter, uint64_t len)
void setBinaryExtension(const char *ext)
void setPath(const char *path)
const char * getBinaryExtension()
uint64_t getBinaryExtensionLength()
uint64_t getIncludeEndLength()
char * detachTextValue()
void setHexExtension(const char *ext, uint64_t len)
void setTextExtension(const char *ext)
uint64_t getPathLength()
void setPath(const char *path, uint64_t len)
void setIncludeStart(const char *delimiter)
void setFileFormat(sensitivevalue_format_t format)
uint64_t getIncludeStartLength()
const byte_t * getValue()
const char * getHexExtension()
void setIncludeEnd(const char *delimiter)
void setHexExtension(const char *ext)