Gaudi Framework, version v24r2

Home   Generated: Wed Dec 4 2013
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
PropertyName.h
Go to the documentation of this file.
1 // $Id:$
2 #ifndef JOBOPTIONSVC_PROPERTY_NAME_H_
3 #define JOBOPTIONSVC_PROPERTY_NAME_H_
4 // ============================================================================
5 // Includes:
6 // ============================================================================
7 // STD & STL:
8 // ============================================================================
9 #include <string>
10 // ============================================================================
11 // Boost:
12 // ============================================================================
13 #include <boost/scoped_ptr.hpp>
14 #include <boost/shared_ptr.hpp>
15 // ============================================================================
16 #include "Position.h"
17 // ============================================================================
18 namespace Gaudi { namespace Parsers {
19 // ============================================================================
20 class Position;
21 // ============================================================================
22 class PropertyName {
23  public:
24 // ----------------------------------------------------------------------------
25  typedef boost::shared_ptr<PropertyName> SharedPtr;
26  typedef boost::shared_ptr<const PropertyName> ConstSharedPtr;
27  typedef boost::scoped_ptr<PropertyName> ScopedPtr;
28  typedef boost::scoped_ptr<const PropertyName> ConstScopedPtr;
29 // ----------------------------------------------------------------------------
30  explicit PropertyName(const std::string& property): client_(""),
31  property_(property) {}
32  PropertyName(const std::string& property, const Position& pos):
33  client_(""), property_(property), position_(pos) {}
34  PropertyName(const std::string& client, const std::string& property):
35  client_(client), property_(property){}
36  PropertyName(const std::string& client, const std::string& property,
37  const Position& pos):
38  client_(client), property_(property), position_(pos) {}
39  const std::string& client() const { return client_;}
40  const std::string& property() const { return property_;}
41  const Position& position() const { return position_;}
42  std::string FullName() const;
43  std::string ToString() const;
44  bool HasClient() const { return client_.length() > 0;}
45  bool HasPosition() const { return position_.Exists();}
46  private:
50 };
51 // ============================================================================
52 } /* Gaudi */ } /* Parsers */
53 // ============================================================================
54 #endif // JOBOPTIONSVC_PROPERTY_NAME_H_

Generated at Wed Dec 4 2013 14:33:08 for Gaudi Framework, version v24r2 by Doxygen version 1.8.2 written by Dimitri van Heesch, © 1997-2004