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
12 enum sensitivevalue_format_t {
13 FORMAT_TEXT=0,
14 FORMAT_BINARY,
15 FORMAT_HEX
16 };
17
18 class RUDIMENTS_DLLSPEC sensitivevalue {
19 public:
20
22 sensitivevalue();
23
25 ~sensitivevalue();
26
30 void setRedirectStart(const char *delimiter);
31
35 void setRedirectStart(const char *delimiter, uint64_t len);
36
40 void setRedirectEnd(const char *delimiter);
41
45 void setRedirectEnd(const char *delimiter, uint64_t len);
46
50 void setVerbatimFormat(sensitivevalue_format_t format);
51
55 void setFileFormat(sensitivevalue_format_t format);
56
60 void setChompTextFile(bool chomptextfile);
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 *getRedirectStart();
98
103 uint64_t getRedirectStartLength();
104
108 const char *getRedirectEnd();
109
114 uint64_t getRedirectEndLength();
115
118 sensitivevalue_format_t getVerbatimFormat();
119
122 sensitivevalue_format_t getFileFormat();
123
127 bool getChompTextFile();
128
130 const char *getPath();
131
133 uint64_t getPathLength();
134
137 const char *getTextExtension();
138
141 uint64_t getTextExtensionLength();
142
145 const char *getBinaryExtension();
146
149 uint64_t getBinaryExtensionLength();
150
153 const char *getHexExtension();
154
157 uint64_t getHexExtensionLength();
158
288 void parse(const char *in);
289
292 void parse(const char *in, uint64_t inlen);
293
295 const unsigned char *getValue();
296
304 unsigned char *detachValue();
305
312 uint64_t getValueSize();
313
315 const char *getTextValue();
316
324 char *detachTextValue();
325
332 uint64_t getTextValueLength();
333
344 void clear();
345
346 #include <rudiments/private/sensitivevalue.h>
347 };
348
349 #endif
sensitivevalue
Definition: sensitivevalue.h:18
sensitivevalue::getHexExtension
const char * getHexExtension()
sensitivevalue::setChompTextFile
void setChompTextFile(bool chomptextfile)
sensitivevalue::setRedirectStart
void setRedirectStart(const char *delimiter)
sensitivevalue::setBinaryExtension
void setBinaryExtension(const char *ext, uint64_t len)
sensitivevalue::getRedirectEnd
const char * getRedirectEnd()
sensitivevalue::setRedirectEnd
void setRedirectEnd(const char *delimiter)
sensitivevalue::detachValue
unsigned char * detachValue()
sensitivevalue::getTextExtensionLength
uint64_t getTextExtensionLength()
sensitivevalue::setRedirectEnd
void setRedirectEnd(const char *delimiter, uint64_t len)
sensitivevalue::sensitivevalue
sensitivevalue()
sensitivevalue::parse
void parse(const char *in, uint64_t inlen)
sensitivevalue::getRedirectStartLength
uint64_t getRedirectStartLength()
sensitivevalue::setVerbatimFormat
void setVerbatimFormat(sensitivevalue_format_t format)
sensitivevalue::getTextValueLength
uint64_t getTextValueLength()
sensitivevalue::setRedirectStart
void setRedirectStart(const char *delimiter, uint64_t len)
sensitivevalue::getValueSize
uint64_t getValueSize()
sensitivevalue::getRedirectEndLength
uint64_t getRedirectEndLength()
sensitivevalue::getHexExtensionLength
uint64_t getHexExtensionLength()
sensitivevalue::getChompTextFile
bool getChompTextFile()
sensitivevalue::getVerbatimFormat
sensitivevalue_format_t getVerbatimFormat()
sensitivevalue::detachTextValue
char * detachTextValue()
sensitivevalue::getFileFormat
sensitivevalue_format_t getFileFormat()
sensitivevalue::parse
void parse(const char *in)
sensitivevalue::setTextExtension
void setTextExtension(const char *ext, uint64_t len)
sensitivevalue::setBinaryExtension
void setBinaryExtension(const char *ext)
sensitivevalue::setPath
void setPath(const char *path)
sensitivevalue::getBinaryExtensionLength
uint64_t getBinaryExtensionLength()
sensitivevalue::setHexExtension
void setHexExtension(const char *ext, uint64_t len)
sensitivevalue::getValue
const unsigned char * getValue()
sensitivevalue::setTextExtension
void setTextExtension(const char *ext)
sensitivevalue::getPathLength
uint64_t getPathLength()
sensitivevalue::getBinaryExtension
const char * getBinaryExtension()
sensitivevalue::setPath
void setPath(const char *path, uint64_t len)
sensitivevalue::getRedirectStart
const char * getRedirectStart()
sensitivevalue::setFileFormat
void setFileFormat(sensitivevalue_format_t format)
sensitivevalue::getTextExtension
const char * getTextExtension()
sensitivevalue::~sensitivevalue
~sensitivevalue()
sensitivevalue::getTextValue
const char * getTextValue()
sensitivevalue::clear
void clear()
sensitivevalue::getPath
const char * getPath()
sensitivevalue::setHexExtension
void setHexExtension(const char *ext)