#include <nConfig.h>
Public Member Functions | |
nConfItemLine (const char *title, tString &s) | |
nConfItemLine (const char *title, tString &s, callbackFunc *cb) | |
virtual | ~nConfItemLine () |
virtual void | ReadVal (std::istream &s) |
Definition at line 202 of file nConfig.h.
nConfItemLine::nConfItemLine | ( | const char * | title, | |
tString & | s | |||
) |
nConfItemLine::nConfItemLine | ( | const char * | title, | |
tString & | s, | |||
callbackFunc * | cb | |||
) |
nConfItemLine::~nConfItemLine | ( | ) | [virtual] |
void nConfItemLine::ReadVal | ( | std::istream & | s | ) | [virtual] |
Implements tConfItemBase.
Definition at line 231 of file nConfig.cpp.
References tConfItemBase::changed, con, tConfItemBase::ExecuteCallback(), tConfItemBase::printChange, tString::ReadLine(), tOutput::SetTemplateParameter(), tConfItem< tString >::target, and tConfItemBase::title.
00232 { 00233 tString dummy; 00234 dummy.ReadLine(s,true); 00235 if(strcmp(dummy,*target)){ 00236 if (printChange) 00237 { 00238 tOutput o; 00239 o.SetTemplateParameter(1, title); 00240 o.SetTemplateParameter(2, *target); 00241 o.SetTemplateParameter(3, dummy); 00242 o << "$config_value_changed"; 00243 con << o; 00244 } 00245 *target=dummy; 00246 changed=true; 00247 ExecuteCallback(); 00248 } 00249 00250 *target=dummy; 00251 }