ECS/Project/Project/RDFP/RDFP.cpp
//	Parse the specified Resource Description File.
Parse the specified Resource Description File.
Parse the specified Resource Description File .
bool RDFP::parseResourceDescriptionFile(const std::string & RDF, std::map<std::string, ResourceDescription> & RDM)
{
	std::vector<std::string> resourceDescription;
	std::ifstream filestream(RDF);
	std::string currentLine;
	while (std::getline(filestream, currentLine))
	{
		resourceDescription.push_back(StringModifiers::trimmed(currentLine));
	}
	std::cout << "Parsing " << RDF << " " << std::endl;;
	if (parseResourceDescription(resourceDescription, RDM))
	{
		std::cout << "Parsing Successful! " << std::endl;;
		return true;
	}
	else
	{
		std::cout << "Parsing Failed! " << std::endl;;
		return false;
	}
}
bool RDFP :: parseResourceDescriptionFile ( const std :: string & RDF , std :: map < std :: string , ResourceDescription > & RDM ) { std :: vector < std :: string > resourceDescription ; std :: ifstream filestream ( RDF ) ; std :: string currentLine ; while ( std :: getline ( filestream , currentLine ) ) { resourceDescription . push_back ( StringModifiers :: trimmed ( currentLine ) ) ; } std :: cout << " " << RDF << " " << std :: endl ; ; if ( parseResourceDescription ( resourceDescription , RDM ) ) { std :: cout << " " << std :: endl ; ; return true ; } else { std :: cout << " " << std :: endl ; ; return false ; } }
Parse the specified Resource Description File.
Parse the specified Resource Description File .
//	The Actual Description. //	Open the file. //	The temporary line. //	Read in the file, one line at a time. //	Add it to the actual description. //	Parse the description. //	