Example #1
0
FileScope::FileScope(const string &fileName, int fileSize, const MD5 &md5)
  : BlockScope("", "", StatementPtr(), BlockScope::FileScope),
    m_size(fileSize), m_md5(md5), m_system(false),
    m_isHHFile(false), m_preloadPriority(0),
    m_fileName(fileName), m_redeclaredFunctions(0) {
  pushAttribute(); // for global scope
}
Example #2
0
DomAttribute *XML::setAttribute(const std::string& name, const std::string& value) {
	XMLAttribute *new_attribute = NULL;
	if(name.empty()) {
		return(new_attribute);
	}

//	std::cout << __func__ << ": " << name << " "  << value << std::endl;	
	new_attribute = new XMLAttribute(name,value);
//	printf("aqui\n");
//	attributes.push_back((DomAttribute *)new_attribute); // BUG
//	attributes.push_back(dynamic_cast<DomAttribute *>(new_attribute));
//	printf("ali\n");
	pushAttribute(new_attribute);
	return((DomAttribute *)new_attribute);
}