nConfItemLine Class Reference

#include <nConfig.h>

Inheritance diagram for nConfItemLine:

Inheritance graph
[legend]
Collaboration diagram for nConfItemLine:

Collaboration graph
[legend]

List of all members.

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)


Detailed Description

Definition at line 202 of file nConfig.h.


Constructor & Destructor Documentation

nConfItemLine::nConfItemLine ( const char *  title,
tString s 
)

Definition at line 223 of file nConfig.cpp.

nConfItemLine::nConfItemLine ( const char *  title,
tString s,
callbackFunc *  cb 
)

Definition at line 226 of file nConfig.cpp.

nConfItemLine::~nConfItemLine (  )  [virtual]

Definition at line 229 of file nConfig.cpp.

00229 {}


Member Function Documentation

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 }

Here is the call graph for this function:


The documentation for this class was generated from the following files:
Generated on Sat Mar 15 23:47:22 2008 for Armagetron Advanced by  doxygen 1.5.4