ANNA Suite  2020b
Multipurpose development suite for Telco applications
Namespace.hpp
Go to the documentation of this file.
1 // ANNA - Anna is Not Nothingness Anymore //
2 // //
3 // (c) Copyright 2005-2015 Eduardo Ramos Testillano & Francisco Ruiz Rayo //
4 // //
5 // See project site at http://redmine.teslayout.com/projects/anna-suite //
6 // See accompanying file LICENSE or copy at http://www.teslayout.com/projects/public/anna.LICENSE //
7 
8 
9 #ifndef anna_xml_Namespace_hpp
10 #define anna_xml_Namespace_hpp
11 
12 #include <string>
13 
14 #include <anna/core/Allocator.hpp>
15 
16 namespace anna {
17 
18 namespace xml {
19 
20 class Node;
21 
30 class Namespace {
31 public:
36  const std::string& getName() const { return a_name; }
37 
42  const std::string& getReference() const { return a_reference; }
43 
48  std::string asString() const ;
49 
50 private:
54  Namespace() {;}
55 
56  std::string a_name;
57  std::string a_reference;
58 
59  void setName(const char* name) { a_name = name; }
60  void setName(const std::string& name) { a_name = name; }
61  void setReference(const char* reference) { a_reference = reference; }
62 
63  friend class Allocator<Namespace>;
64  friend class Node;
65 };
66 
67 }
68 }
69 
70 #endif
Definition: Node.hpp:56
const std::string & getReference() const
Definition: Namespace.hpp:42
Definition: Namespace.hpp:30
Definition: Allocator.hpp:19
xml::Node Node
Definition: Node.hpp:21
Definition: app.hpp:12
const std::string & getName() const
Definition: Namespace.hpp:36
std::string asString() const