ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/i-scream/projects/cms/source/host/c++/XMLFormatter.h
Revision: 1.4
Committed: Mon Feb 26 14:54:02 2001 UTC (23 years, 6 months ago) by ab11
Content type: text/plain
Branch: MAIN
CVS Tags: PROJECT_COMPLETION
Changes since 1.3: +0 -0 lines
Log Message:
Final Version

File Contents

# User Rev Content
1 ab11 1.2 #include <iostream>
2     #include <string>
3    
4     using std::string;
5 ab11 1.1
6     class XMLFormatter {
7    
8     public:
9     // public variables
10     // public methods
11 ab11 1.2 XMLFormatter( string newHostInfo );
12     XMLFormatter();
13     XMLFormatter( string newHostInfo, string attributes);
14 ab11 1.1
15 ab11 1.2 string returnXML();
16 ab11 1.1 void closeNest();
17 ab11 1.2 void addNest(string nest);
18     void addElement(string element, string value);
19     void addElement(string element, string attribute, string value);
20     void addString(string text){ xmlData += text; };
21 ab11 1.1
22     private:
23     // private variables
24 ab11 1.2 string xmlData;
25     string hostInfo;
26     string stack[50];
27     int stackPointer;
28 ab11 1.1
29     }; // end class