/*
** SellaNMS
** $Id: configuration.cxx,v 1.5 2005/05/21 23:10:28 sella Exp $
** Copyright (c) 2001-2005 Digital Genesis Software, LLC. All Rights Reserved.
** Released under the GPL Version 2 License.
** http://www.digitalgenesis.com
*/

static char rcsid[] = "$Id: configuration.cxx,v 1.5 2005/05/21 23:10:28 sella Exp $";

#include "configuration.h"

Configuration::Configuration(): config(NULL) {
}

Configuration::~Configuration() {
}

RESULT Configuration::get(string request, ConfigNode **node) {
	assert(*node == NULL); //There shouldn't be something allocated already.
	assert(config != NULL); //config should be set prior to this.

	if (!(*node = config->getNode(request))) {
		return FAILURE;
	}

	return SUCCESS;
}

/*
** Local Variables:
** c-basic-offset: 3
** tab-width: 3
** End:
** vim600: fdm=marker
** vim: noet ts=3 sw=3
*/
