Ginga  0.13.6.1771-df200
The iTV middleware.
Composition.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 COMPOSITION_H
19 #define COMPOSITION_H
20 
21 #include "Object.h"
22 
24 
25 class Composition: public Object
26 {
27  public:
28  Composition (const string &);
29  virtual ~Composition () = 0;
30 
31  const set<Object *> *getChildren ();
32  Object *getChildById (const string &);
33  Object *getChildByIdOrAlias (const string &);
34  void addChild (Object *);
35 
36  protected:
37  set<Object *> _children;
38 };
39 
41 
42 #endif // COMPOSITION_H
Definition: Object.h:29
virtual ~Composition()=0
Definition: Composition.cpp:29
Composition(const string &)
Definition: Composition.cpp:25
Definition: Composition.h:25
Object * getChildByIdOrAlias(const string &)
Definition: Composition.cpp:49
#define GINGA_NAMESPACE_END
Definition: aux-ginga.h:62
set< Object * > _children
Definition: Composition.h:37
void addChild(Object *)
Definition: Composition.cpp:61
Object * getChildById(const string &)
Definition: Composition.cpp:40
#define GINGA_NAMESPACE_BEGIN
Definition: aux-ginga.h:61
const set< Object * > * getChildren()
Definition: Composition.cpp:34