41 #if !defined( GLS_MENUDATA_H )
42 # define GLS_MENUDATA_H
45 # pragma warning( disable : 4786 )
54 # include "disti_metadata.h"
76 GlsMenuData(
const std::string& name,
bool localStorage );
91 virtual void Inc(
long amount = 1 );
146 virtual void Attach( T*& data );
155 virtual bool ReferTo( T& data );
176 virtual std::ostream&
WriteValue( std::ostream& outstr );
187 virtual std::istream&
ReadValue( std::istream& instr );
202 virtual const T&
Value()
const;
216 virtual void Value(
const T& val );
237 outstr << std::fixed << std::showpoint
238 << std::setprecision( _precision ) << Value();
244 outstr << std::fixed << std::showpoint
245 << std::setprecision( _precision ) << Value();
288 virtual void Inc(
long amount = 1 );
309 GlsMenuLine(
const std::string& name, std::string* data );
317 GlsMenuLine(
const std::string& name,
const std::string& initialVal =
"" );
338 virtual std::istream&
ReadValue( std::istream& instr );
393 virtual void Attach( T*& data );
402 virtual bool ReferTo( T& data );
423 virtual std::ostream&
WriteValue( std::ostream& outstr );
434 virtual std::istream&
ReadValue( std::istream& instr );
449 virtual const T&
Value()
const;
463 virtual void Value(
const T& val );
497 const std::string& name,
509 const std::string& name,
524 virtual std::ostream&
WriteValue( std::ostream& outstr );
535 virtual std::istream&
ReadValue( std::istream& instr );
554 bool GetQuoted( std::istream& instr, std::string& theString );
559 # include "gls_menu_data.inl"
This file defines generic function object (functor) classes.