ClientHandler/ClientHandler.cpp
sPtr ClientHandler::makeFileElement(sPtr pRoot, std::string package, std::string filename, std::vector<std::string> deps) {
	sPtr file = makeTaggedElement("file");
	file->addChild(makeTextElement(filename));
	sPtr depNames = makeTaggedElement("deps");
	for (auto depName : deps) {
		sPtr dep = makeTaggedElement("dep");
		dep->addChild(makeTextElement(depName));
		depNames->addChild(dep);
	}
	file->addChild(depNames);
	pRoot->addChild(file);
	return pRoot;
}
// ---------------< create xml element for file and its dependencies >-------------
< create xml element for file and its dependencies >
< create xml element for file and its dependencies >
sPtr ClientHandler::makeFileElement(sPtr pRoot, std::string package, std::string filename, std::vector<std::string> deps) {
	sPtr file = makeTaggedElement("file");
	file->addChild(makeTextElement(filename));
	sPtr depNames = makeTaggedElement("deps");
	for (auto depName : deps) {
		sPtr dep = makeTaggedElement("dep");
		dep->addChild(makeTextElement(depName));
		depNames->addChild(dep);
	}
	file->addChild(depNames);
	pRoot->addChild(file);
	return pRoot;
}
sPtr ClientHandler :: makeFileElement ( sPtr pRoot , std :: string package , std :: string filename , std :: vector < std :: string > deps ) { sPtr file = makeTaggedElement ( " " ) ; file -> addChild ( makeTextElement ( filename ) ) ; sPtr depNames = makeTaggedElement ( " " ) ; for ( auto depName : deps ) { sPtr dep = makeTaggedElement ( " " ) ; dep -> addChild ( makeTextElement ( depName ) ) ; depNames -> addChild ( dep ) ; } file -> addChild ( depNames ) ; pRoot -> addChild ( file ) ; return pRoot ; }
< create xml element for file and its dependencies >
< create xml element for file and its dependencies >