00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038 #include "HDFNode.h"
00039 #include <assert.h>
00040 #include "ClearSilverNode.h"
00041
00042 using namespace std;
00043
00044
00045 ClearSilver::HDFNode::HDFNode () {}
00046 ClearSilver::HDFNode::HDFNode (const HDFNode&) {}
00047 ClearSilver::HDFNode::~HDFNode () throw() {}
00048
00049
00050 #if 0
00051 ClearSilver::HDFNode&
00052 ClearSilver::HDFNode::operator = (const HDFNode& n)
00053 {
00054 return *this;
00055 }
00056 #endif
00057
00058
00059 void
00060 ClearSilver::HDFNode::set_value (const char* value)
00061 {
00062 set_value (std::string(value));
00063 }
00064
00065 void
00066 ClearSilver::HDFNode::set_value (const std::string& value)
00067 {
00068 node().operator = (value);
00069 }
00070
00071 void
00072 ClearSilver::HDFNode::set_value (int value)
00073 {
00074 node().operator = (value);
00075 }
00076
00077 void
00078 ClearSilver::HDFNode::set_value (bool value)
00079 {
00080 node().operator = (value);
00081 }
00082
00083 void
00084 ClearSilver::HDFNode::set_value (const char* key, const char* value)
00085 {
00086 set_value(std::string(key), std::string(value));
00087 }
00088
00089 void
00090 ClearSilver::HDFNode::set_value (const std::string& key, const std::string& value)
00091 {
00092 node().set_value(key,value);
00093 }
00094
00095 void
00096 ClearSilver::HDFNode::set_value (const char* key, int value)
00097 {
00098 set_value(std::string(key),value);
00099 }
00100
00101 void
00102 ClearSilver::HDFNode::set_value (const std::string& key, int value)
00103 {
00104 node().set_value(key,value);
00105 }
00106
00107 void
00108 ClearSilver::HDFNode::set_value (const char* key, unsigned int value)
00109 {
00110 set_value(std::string(key),value);
00111 }
00112
00113 void
00114 ClearSilver::HDFNode::set_value (const std::string& key, unsigned int value)
00115 {
00116 node().set_value(key,value);
00117 }
00118
00119 void
00120 ClearSilver::HDFNode::set_value (const char* key, bool value)
00121 {
00122 set_value(std::string(key),value);
00123 }
00124
00125 void
00126 ClearSilver::HDFNode::set_value (const std::string& key, bool value)
00127 {
00128 node().set_value(key,value);
00129 }
00130
00131 void
00132 ClearSilver::HDFNode::read_file (const char* filename)
00133 {
00134 read_file(std::string(filename));
00135 }
00136
00137 void
00138 ClearSilver::HDFNode::read_file (const std::string& filename)
00139 {
00140 node().read_file(filename);
00141 }
00142
00143
00144 void
00145 ClearSilver::HDFNode::sort (ClearSilverNodeComparator::Ptr c)
00146 {
00147 node().sort (c);
00148 }
00149
00150
00151
00152
00153 void
00154 ClearSilver::HDFNode::remove_tree (const char * key)
00155 {
00156 remove_tree(std::string(key));
00157 }
00158
00159
00160 void
00161 ClearSilver::HDFNode::remove_tree (const std::string& key)
00162 {
00163 node().remove_tree(key);
00164 }
00165
00166 void
00167 ClearSilver::HDFNode::remove_tree (HDF& hdf)
00168 {
00169 assert (0);
00170 }
00171
00172 void
00173 ClearSilver::HDFNode::remove_cgi ()
00174 {
00175 remove_tree ("CGI");
00176 remove_tree ("Cookie");
00177 remove_tree ("HTTP");
00178 remove_tree ("Query");
00179 }
00180
00181 void
00182 ClearSilver::HDFNode::swap (HDFNode&) throw()
00183 {}
00184
00185
00186 bool&
00187 ClearSilver::HDFNode::debug ()
00188 {
00189 static bool debug_ = false;
00190 return debug_;
00191 }
00192