version 1.2, 2006/04/27 18:47:13
|
version 1.3, 2006/04/28 18:41:40
|
|
|
#include <unistd.h> | #include <unistd.h> |
#endif | #endif |
| |
//#define DEBUG |
//#define STRESSTEST_DEBUG |
| |
#define SIXTYSECONDS 60 | #define SIXTYSECONDS 60 |
#define MILLISECONDS 1000 | #define MILLISECONDS 1000 |
|
|
// | // |
// Duplicate property, ignore the new property value. | // Duplicate property, ignore the new property value. |
// | // |
#ifdef DEBUG |
#ifdef STRESSTEST_DEBUG |
cout<< "Property Name:duplicate name already saved: "<< | cout<< "Property Name:duplicate name already saved: "<< |
name<<endl; | name<<endl; |
#endif | #endif |
|
|
throw StressTestControllerException(StressTestControllerException::MISSING_VALUE); | throw StressTestControllerException(StressTestControllerException::MISSING_VALUE); |
} | } |
| |
#ifdef DEBUG |
#ifdef STRESSTEST_DEBUG |
cout<<"name="<<name<<endl; | cout<<"name="<<name<<endl; |
cout<<"Before validate config: value="<<value<<endl; | cout<<"Before validate config: value="<<value<<endl; |
#endif | #endif |
|
|
while (GetLine(ifs, line)) | while (GetLine(ifs, line)) |
{ | { |
++lineNumber; | ++lineNumber; |
#ifdef DEBUG |
#ifdef STRESSTEST_DEBUG |
log_file<<" Line number:"<<lineNumber<<endl; | log_file<<" Line number:"<<lineNumber<<endl; |
log_file<<" "<<line<<endl; | log_file<<" "<<line<<endl; |
#endif | #endif |
|
|
{ | { |
value.append(*p++); | value.append(*p++); |
} | } |
#ifdef DEBUG |
#ifdef STRESSTEST_DEBUG |
cout<<"name="<<name<<endl; | cout<<"name="<<name<<endl; |
cout<<"value="<<value<<endl; | cout<<"value="<<value<<endl; |
#endif | #endif |