Ginga  0.13.6.1771-df200
The iTV middleware.
NclDocument.h
Go to the documentation of this file.
1 /* Copyright (C) 2006-2017 PUC-Rio/Laboratorio TeleMidia
2 
3 This file is part of Ginga (Ginga-NCL).
4 
5 Ginga is free software: you can redistribute it and/or modify it
6 under the terms of the GNU General Public License as published by
7 the Free Software Foundation, either version 2 of the License, or
8 (at your option) any later version.
9 
10 Ginga is distributed in the hope that it will be useful, but WITHOUT
11 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
12 or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
13 License for more details.
14 
15 You should have received a copy of the GNU General Public License
16 along with Ginga. If not, see <http://www.gnu.org/licenses/>. */
17 
18 #ifndef NCL_DOCUMENT_H
19 #define NCL_DOCUMENT_H
20 
21 #include "NclContext.h"
22 
24 
26 {
27 public:
28  NclDocument (const string &, const string &);
29  ~NclDocument ();
30 
31  string getId ();
32  string getURI ();
33  NclContext *getRoot ();
34 
35  NclEntity *getEntityById (const string &);
36  bool registerEntity (NclEntity *);
37  bool unregisterEntity (NclEntity *);
38 
39  list<NclNode *> *getSettingsNodes ();
40 
41 private:
42  string _id;
43  string _uri;
45  map<string, NclEntity *> _entities;
46 };
47 
49 
50 #endif // NCL_DOCUMENT_H
string _id
Definition: NclDocument.h:42
Definition: NclDocument.h:25
string getId()
Definition: NclDocument.cpp:38
string getURI()
Definition: NclDocument.cpp:44
NclEntity * getEntityById(const string &)
Definition: NclDocument.cpp:56
NclDocument(const string &, const string &)
Definition: NclDocument.cpp:25
Definition: NclEntity.h:26
NclContext * getRoot()
Definition: NclDocument.cpp:50
#define GINGA_NAMESPACE_END
Definition: aux-ginga.h:62
bool unregisterEntity(NclEntity *)
Definition: NclDocument.cpp:74
Definition: NclContext.h:26
NclContext * _root
Definition: NclDocument.h:44
#define GINGA_NAMESPACE_BEGIN
Definition: aux-ginga.h:61
map< string, NclEntity * > _entities
Definition: NclDocument.h:45
~NclDocument()
Definition: NclDocument.cpp:32
list< NclNode * > * getSettingsNodes()
Definition: NclDocument.cpp:84
bool registerEntity(NclEntity *)
Definition: NclDocument.cpp:64
string _uri
Definition: NclDocument.h:43