Ginga  0.13.6.1771-df200
The iTV middleware.
NclNode.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_NODE_H
19 #define NCL_NODE_H
20 
21 #include "NclAnchor.h"
22 
24 
25 class NclComposition;
26 class NclNode: public NclEntity
27 {
28 public:
29  NclNode (NclDocument *, const string &);
30  virtual ~NclNode ();
31 
33  void initParent (NclComposition *);
34 
35  void addAnchor (NclAnchor *);
36  const list<NclAnchor *> *getAnchors ();
37  NclAnchor *getAnchor (const string &);
38  NclAnchor *getLambda ();
39 
40  bool hasProperty (const string &);
41  void setProperty (const string &, const string &);
42  string getProperty (const string &);
43 
44  NclNode *derefer ();
45 
46 private:
48  list<NclAnchor *> _anchors;
50 };
51 
53 
54 #endif // NCL_NODE_H
Definition: NclComposition.h:26
Definition: NclDocument.h:25
NclNode(NclDocument *, const string &)
Definition: NclNode.cpp:28
virtual ~NclNode()
Definition: NclNode.cpp:35
NclAnchor * getAnchor(const string &)
Definition: NclNode.cpp:69
list< NclAnchor * > _anchors
Definition: NclNode.h:48
NclNode * derefer()
Definition: NclNode.cpp:132
Definition: NclEntity.h:26
NclComposition * getParent()
Definition: NclNode.cpp:42
NclComposition * _parent
Definition: NclNode.h:47
void initParent(NclComposition *)
Definition: NclNode.cpp:48
void addAnchor(NclAnchor *)
Definition: NclNode.cpp:56
#define GINGA_NAMESPACE_END
Definition: aux-ginga.h:62
NclAnchor * getLambda()
Definition: NclNode.cpp:78
Definition: NclAnchor.h:25
#define GINGA_NAMESPACE_BEGIN
Definition: aux-ginga.h:61
string getProperty(const string &)
Definition: NclNode.cpp:99
NclAnchor * _lambda
Definition: NclNode.h:49
bool hasProperty(const string &)
Definition: NclNode.cpp:85
void setProperty(const string &, const string &)
Definition: NclNode.cpp:114
Definition: NclNode.h:26
const list< NclAnchor * > * getAnchors()
Definition: NclNode.cpp:63