9 #ifndef __libutilxx__sella__variant__Pointer_H__
10 #define __libutilxx__sella__variant__Pointer_H__
12 #include "../../common.h"
13 #include "TypeCastException.h"
18 #include <boost/regex.hpp>
28 static const boost::regex & Pattern(
void) {
static boost::regex regex(
"^0x[0-9A-Fa-f]{8,16}$");
return regex; }
29 static const int Type = 0x09;
33 Pointer(
const std::string &value)
throw (TypeCastException);
40 bool operator==(
const Pointer &other)
const throw ();
41 bool operator!=(
const Pointer &other)
const throw ();
42 bool operator>(
const Pointer &other)
const throw ();
43 bool operator<(
const Pointer &other)
const throw ();
44 bool operator!()
throw ();
46 Pointer& operator=(
void *other)
throw ();
49 const void*&
get()
const throw (UnsupportedOperatorException);
50 void*&
get()
throw (UnsupportedOperatorException);
53 virtual void msgpackBufferSize(
size_t &size)
const throw ();
54 virtual std::string str(
int type)
const throw ();
55 virtual int getType(
void)
throw () {
return Type; }
57 static bool isType(
const std::string &value)
throw () {
return isType(value.c_str(), value.size()); }
58 static bool isType(
const char *value,
size_t size)
throw ();