![]() |
![]() |
|
Index
Source Files
Annotated Class List
Alphabetical Class List
Class Hierarchy
Graphical Class Hierarchy
|
||
![]() |
![]() |
#include <FieldConvertors.h>
Static Public Member Functions | |
| std::string | convert (bool value) |
| bool | convert (const std::string &value, bool &result) |
| bool | convert (const std::string &value) throw ( FieldConvertError ) |
Definition at line 332 of file FieldConvertors.h.
|
|
Definition at line 353 of file FieldConvertors.h. References convert().
00355 {
00356 bool result = false;
00357 if( !convert( value, result ) )
00358 throw FieldConvertError();
00359 else
00360 return result;
00361 }
|
|
||||||||||||
|
Definition at line 340 of file FieldConvertors.h.
00341 {
00342 if( value.size() != 1 ) return false;
00343 switch( value[0] )
00344 {
00345 case 'Y': result = true; break;
00346 case 'N': result = false; break;
00347 default: return false;
00348 }
00349
00350 return true;
00351 }
|
|
|
Definition at line 334 of file FieldConvertors.h. Referenced by convert().
00335 {
00336 const char ch = value ? 'Y' : 'N';
00337 return std::string( 1, ch );
00338 }
|
1.3.6-20040222 written by Dimitri van Heesch,
© 1997-2001