gogoc-config/src/config.cc
bool Config::CancelConfiguration( void )
{
  assert( m_pParser != NULL );    // Need to have a parser!

  // If access mode is READ only, we're not suposed to be cancelling changes.
  if( m_eAccessMode == AM_READ )
  {
    throw GOGOC_UIS__CFG_CANNOTCANCELWHENREAD;
  }

  // Cancelling changes is the same as re-loading configuration data.
  return LoadConfiguration();
}
// --------------------------------------------------------------------------
// Function : CancelConfiguration
//
// Description:
//   Will cancel any changes made to the configuration data since the last
//   write operation(apply), if any. This is done by simply re-loading the 
//   configuration from the parser object.
//
// Arguments: (none)
//
// Return values:
//   true if changes have been cancelled, false otherwise.
//
// Exceptions:
//   - When access mode is READ only.
//   See LoadConfiguration().
//
// --------------------------------------------------------------------------
Function : CancelConfiguration
Description:
Will cancel any changes made to the configuration data since the last
write operation(apply), if any. This is done by simply re-loading the
configuration from the parser object.

(none)

Return values:
true if changes have been cancelled, false otherwise.

When access mode is READ only.
Function : CancelConfiguration Description : Will cancel any changes made to the configuration data since the last write operation ( apply ) if any . This is done by simply re - loading the configuration from the parser object . ( none ) Return values : true if changes have been cancelled false otherwise . When access mode is READ only .
bool Config::CancelConfiguration( void )
{
  assert( m_pParser != NULL );    
  if( m_eAccessMode == AM_READ )
  {
    throw GOGOC_UIS__CFG_CANNOTCANCELWHENREAD;
  }
  return LoadConfiguration();
}
bool Config :: CancelConfiguration ( void ) { assert ( m_pParser != NULL ) ; if ( m_eAccessMode == AM_READ ) { throw GOGOC_UIS__CFG_CANNOTCANCELWHENREAD ; } return LoadConfiguration ( ) ; }
Function : CancelConfiguration
Description:
Will cancel any changes made to the configuration data since the last
write operation(apply), if any.
Function : CancelConfiguration Description : Will cancel any changes made to the configuration data since the last write operation ( apply ) if any .
// Need to have a parser! // If access mode is READ only, we're not suposed to be cancelling changes. // Cancelling changes is the same as re-loading configuration data.