-/*
-This file is part of libmspparser
+/* $Id$
+
+This file is part of libmspdatafile
Copyright © 2006 Mikko Rasa, Mikkosoft Productions
Distributed under the LGPL
*/
-#ifndef MSP_PARSER_VALUE_H_
-#define MSP_PARSER_VALUE_H_
+#ifndef MSP_DATAFILE_VALUE_H_
+#define MSP_DATAFILE_VALUE_H_
#include <sstream>
#include <string>
#include "error.h"
namespace Msp {
-namespace Parser {
+namespace DataFile {
class Value
{
};
typedef std::vector<Value> ValueArray;
-template<typename T> struct TypeResolver { };
+template<typename T> struct TypeResolver { static const Value::Type type=Value::ENUM; };
template<> struct TypeResolver<short> { static const Value::Type type=Value::INTEGER; };
template<> struct TypeResolver<unsigned short> { static const Value::Type type=Value::INTEGER; };
return data;
}
-} // namespace Parser
+} // namespace DataFile
} // namespace Msp
#endif