// **************************************************************************** // Method: AccessViewerSession::ReadConfigFile // // Purpose: // Reads the session file and stores it internally. // // Arguments: // filename : The name of the session file to open. // // Returns: A pointer to the root data node or 0. // // Programmer: Brad Whitlock // Creation: Mon Nov 13 15:44:26 PST 2006 // // Modifications: // Brad Whitlock, Tue Apr 22 12:19:30 PDT 2008 // Skip the XML tag. // // **************************************************************************** DataNode * AccessViewerSession::ReadConfigFile(std::istream& in) { // Skip the XML tag FinishTag(in); root = new DataNode("root"); ReadObject(in, root); return GetRootNode(); }
// **************************************************************************** // Method: ColorTableManager::ReadConfigFile // // Purpose: // Reads a color table from a file. // // Arguments: // filename : The name of the file to open. // // Programmer: Brad Whitlock // Creation: Thu Jul 3 18:27:57 PST 2003 // // Modifications: // // **************************************************************************** DataNode * ColorTableManager::ReadConfigFile(std::istream& in) { DataNode *node = 0; // Read the XML tag and ignore it. FinishTag(in); // Create a root node and use it to read the visit tree. node = new DataNode("FileRoot"); ReadObject(in, node); return node; }
void fsaSaxHandler::endElement( const char *uri, const char *localName, const char *qName) { if(m_nTagLevel) { m_nTagLevel--; if(!m_nTagLevel) { // we found </Tag> FinishTag(); } else { RGString str(localName); m_mapTag.insert(MAPSTR::value_type(str,m_strCurrentValue)); m_strCurrentValue = ""; } } }
DataNode * SingleAttributeConfigManager::ReadConfigFile(const char *filename) { DataNode *node = 0; // Try and open the file for reading. if((fp = fopen(filename, "r")) == 0) return node; // Read the XML tag and ignore it. FinishTag(); // Create a root node and use it to read the visit tree. node = new DataNode("FileRoot"); ReadObject(node); fclose(fp); fp = 0; return node; }