41 #if !defined( GLS_MENUDICTIONARY_H )
42 # define GLS_MENUDICTIONARY_H
47 # include "disti_metadata.h"
79 const std::string& str,
80 const char* startDelim =
"$(",
81 const char* endDelim =
")" );
93 void Attach(
const std::string& name, T*& t )
113 bool Refer(
const std::string& name, T& t )
115 bool success(
false );
138 bool success(
false );
142 T currentVal = data->
Value();
146 data->
Value( currentVal );
165 DISTI_DEPRECATED(
"Renamed to CopyCommonValues() to better represent the action taken by this function." )
172 DISTI_DEPRECATED(
"Renamed to CopyCommonValues() to better represent the action taken by this function." )
228 virtual void Write( std::ostream& outstr,
bool changedDataOnly =
false ) {
_attribDict.Write( outstr, changedDataOnly ); }
248 virtual void ValueString(
const disti::AttributeName& name,
const std::string& val ) {
_attribDict.ValueString( name, val ); }
257 virtual std::ostream&
WriteValue(
const disti::AttributeName& name, std::ostream& outstr ) {
return _attribDict.WriteValue( name, outstr ); }
260 virtual std::istream&
ReadValue(
const disti::AttributeName& name, std::istream& instr ) {
return _attribDict.ReadValue( name, instr ); }
264 virtual disti::DistiAttributeBase*
Get(
const disti::AttributeName& name )
const {
return _attribDict.Get( name ); }
269 virtual bool IsEqual(
const disti::AttributeName& name,
const long val )
const {
return _attribDict.IsEqual( name, val ); }
272 static void SpacingInc() { disti::DistiAttribDict::SpacingInc(); }
275 static void SpacingDec() { disti::DistiAttribDict::SpacingDec(); }
278 static void SpacingZero() { disti::DistiAttribDict::SpacingZero(); }
281 static std::string
SpacingString() {
return disti::DistiAttribDict::SpacingString(); }
286 static bool ScanToken( std::istream& instr, std::string& result ) {
return disti::DistiAttribDict::ScanToken( instr, result ); }
298 #endif // GLS_MENUDICTIONARY_H