ocelot/ocelot/api/implementation/OcelotConfiguration.cpp
void *api::OcelotConfiguration::configuration() const {
	std::ifstream file(path.c_str());
	hydrazine::json::Parser parser;
	hydrazine::json::Object *config = 0;
	try {
		config = parser.parse_object(file);
	}
	catch (hydrazine::Exception exp) {
		std::cerr << "==Ocelot== WARNING: Could not parse config file '" 
			<< path << "', loading defaults.\n" << std::endl;
			
		std::cerr << "exception:\n" << exp.what() << std::endl;
	}
	return config;
}
//! \brief parses and returns configuration object
\brief parses and returns configuration object
\ brief parses and returns configuration object
void *api::OcelotConfiguration::configuration() const {
	std::ifstream file(path.c_str());
	hydrazine::json::Parser parser;
	hydrazine::json::Object *config = 0;
	try {
		config = parser.parse_object(file);
	}
	catch (hydrazine::Exception exp) {
		std::cerr << "==Ocelot== WARNING: Could not parse config file '" 
			<< path << "', loading defaults.\n" << std::endl;
		std::cerr << "exception:\n" << exp.what() << std::endl;
	}
	return config;
}
void * api :: OcelotConfiguration :: configuration ( ) const { std :: ifstream file ( path . c_str ( ) ) ; hydrazine :: json :: Parser parser ; hydrazine :: json :: Object * config = 0 ; try { config = parser . parse_object ( file ) ; } catch ( hydrazine :: Exception exp ) { std :: cerr << " " << path << " \n " << std :: endl ; std :: cerr << " \n " << exp . what ( ) << std :: endl ; } return config ; }
\brief parses and returns configuration object
\ brief parses and returns configuration object