Loading [MathJax]/extensions/tex2jax.js
The Gaudi Framework  v31r0 (aeb156f0)
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
Analyzer.cpp File Reference
#include <iostream>
#include <memory>
#include <boost/format.hpp>
#include "Analyzer.h"
#include "Catalog.h"
#include "IncludedFiles.h"
#include "Messages.h"
#include "Node.h"
#include "Parser.h"
#include "PragmaOptions.h"
#include "PropertyName.h"
#include "PropertyValue.h"
#include "Units.h"
#include "GaudiKernel/Environment.h"
Include dependency graph for Analyzer.cpp:

Go to the source code of this file.

Functions

bool Unreference (gp::Catalog &catalog, gp::Messages *messages)
 

Function Documentation

bool Unreference ( gp::Catalog &  catalog,
gp::Messages *  messages 
)

Definition at line 353 of file Analyzer.cpp.

353  {
354  bool unreference_result = true;
355  for ( auto& client : catalog ) {
356  for ( auto& current : client.second ) {
357  if ( current.IsReference() ) {
358  gp::PropertyValue& value = current.property_value();
359  const std::vector<std::string>& names = value.Vector();
360  gp::Property* property = catalog.Find( names[0], names[1] );
361  if ( !property ) {
362  messages->AddError( value.position(), "Could not unreference " + current.ValueAsString() );
363  unreference_result = false;
364  } else {
365  value = property->property_value();
366  }
367  }
368  }
369  }
370  return unreference_result;
371 }
Gaudi::Details::PropertyBase * property(const std::string &name) const
Gaudi::Details::PropertyBase Property
backward compatibility hack for old Property base class
Definition: PropertyFwd.h:25