/*
- * Copyright 2001-2007 Internet2
+ * Copyright 2001-2009 Internet2
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
*/
#include "internal.h"
+#include "util/PropertySet.h"
#include "util/TemplateParameters.h"
#include <ctime>
using namespace xmltooling;
using namespace std;
+TemplateParameters::TemplateParameters(const exception* e, const PropertySet* props)
+ : m_exception(e), m_toolingException(dynamic_cast<const XMLToolingException*>(e))
+{
+ setPropertySet(props);
+}
+
+TemplateParameters::~TemplateParameters()
+{
+}
+
void TemplateParameters::setPropertySet(const PropertySet* props)
{
m_props = props;
#endif
}
+const XMLToolingException* TemplateParameters::getRichException() const
+{
+ return m_toolingException;
+}
+
const char* TemplateParameters::getParameter(const char* name) const
{
if (m_exception) {