~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/util/convert.h

  • Committer: Monty Taylor
  • Date: 2009-04-14 19:16:51 UTC
  • mto: (997.2.5 mordred)
  • mto: This revision was merged to the branch mainline in revision 994.
  • Revision ID: mordred@inaugust.com-20090414191651-ltbww6hpqks8k7qk
Clarified instructions in README.

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
 *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
19
19
 */
20
20
 
21
 
#ifndef DRIZZLED_UTIL_CONVERT_H
22
 
#define DRIZZLED_UTIL_CONVERT_H
 
21
#ifndef DRIZZLE_SERVER_UTIL_CONVERT
 
22
#define DRIZZLE_SERVER_UTIL_CONVERT
23
23
 
24
24
#include <string>
25
25
#include <iostream>
26
26
#include <sstream>
27
 
 
28
 
namespace drizzled
29
 
{
 
27
#include <stdint.h>
30
28
 
31
29
template <class T>
32
30
std::string to_string(T t)
44
42
  return str;
45
43
}
46
44
 
47
 
void bytesToHexdumpFormat(std::string &s, const unsigned char *from, size_t from_length);
48
 
 
49
 
uint64_t drizzled_string_to_hex(char *to, const char *from,
50
 
                                uint64_t from_size);
51
 
void drizzled_hex_to_string(char *to, const char *from, uint64_t from_size);
52
 
 
53
 
} /* namespace drizzled */
54
 
 
55
 
#endif /* DRIZZLED_UTIL_CONVERT_H */
 
45
extern "C"
 
46
{
 
47
  uint64_t drizzled_string_to_hex(char *to, const char *from,
 
48
                                  uint64_t from_size);
 
49
}
 
50
 
 
51
#endif