Changeset 31033 for trunk/ippToPsps/src/InitData.c
- Timestamp:
- Mar 24, 2011, 11:03:32 AM (15 years ago)
- File:
-
- 1 edited
-
trunk/ippToPsps/src/InitData.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippToPsps/src/InitData.c
r31030 r31033 60 60 61 61 this->logger->print(this->logger, MSG_ERROR, 62 "InitData :Could not find value for '%s' for '%s' with value '%s'\n",62 "InitData", "Could not find value for '%s' for '%s' with value '%s'\n", 63 63 attName, keyName, keyValue); 64 64 … … 84 84 if (strcmp((const char*)rootElement->name, "tabledata")!=0) { 85 85 this->logger->print(this->logger, MSG_ERROR, 86 "InitData :Root node of XML is not 'tabledata', as it should be\n");86 "InitData", "Root node of XML is not 'tabledata', as it should be\n"); 87 87 return false; 88 88 } … … 156 156 } 157 157 158 this->logger->print(this->logger, MSG_DEBUG, "InitData : destructor\n");158 this->logger->print(this->logger, MSG_DEBUG, "InitData", "Destructor\n"); 159 159 160 160 free(this); … … 166 166 InitData* new_InitData(const char* path, Logger* logger) { 167 167 168 169 170 168 InitData* this = (InitData*)calloc(1, sizeof(InitData)); 171 169 this->logger = logger; 172 170 173 this->logger->print(this->logger, MSG_DEBUG, "InitData :Constructor\n");171 this->logger->print(this->logger, MSG_DEBUG, "InitData", "Constructor\n"); 174 172 175 173 sprintf(this->path, "%s/init/data.xml", path); 176 174 177 175 this->doc = xmlReadFile(this->path, NULL, 0); 178 this->logger->print(this->logger, MSG_ERROR, 179 "InitData: Unable to open XML file at %s\n", this->path); 176 177 if (this->doc == NULL) 178 this->logger->print(this->logger, MSG_ERROR, 179 "InitData", "Unable to open init data file at '%s'\n", this->path); 180 else 181 this->logger->print(this->logger, MSG_INFO, 182 "InitData", "Using init data file at '%s'\n", this->path); 183 180 184 181 185 // method pointers
Note:
See TracChangeset
for help on using the changeset viewer.
