17 #ifndef COMMONVALUETOOLS_HPP_ 
   18 #define COMMONVALUETOOLS_HPP_ 
   20 #include <boost/smart_ptr/shared_ptr.hpp> 
   32     static bool isRecord(boost::shared_ptr<ICommonValue> v) {
 
   36     static bool isArray(boost::shared_ptr<ICommonValue> v) {
 
   40     static bool isFixed(boost::shared_ptr<ICommonValue> v) {
 
   44     static bool isEnum(boost::shared_ptr<ICommonValue> v) {
 
   48     static bool isString(boost::shared_ptr<ICommonValue> v) {
 
   52     static bool isNumeric(boost::shared_ptr<ICommonValue> v) {
 
   56     static bool isBool(boost::shared_ptr<ICommonValue> v) {
 
   64     static bool isNull(boost::shared_ptr<ICommonValue> v) {
 
   70             return boost::any_cast<
const CommonRecord &>(v->getValue());
 
   82     static const std::string &
getEnumValue(boost::shared_ptr<ICommonValue> v) {
 
   84             return boost::any_cast<
const std::string &>(v->getValue());
 
   89     static std::vector<boost::uint8_t> 
getByteArray(boost::shared_ptr<ICommonValue> v) {
 
   91             return boost::any_cast<
const std::vector<boost::uint8_t> &>(v->getValue());