~ubuntu-branches/ubuntu/vivid/mygui/vivid

« back to all changes in this revision

Viewing changes to UnitTests/UnitTest_GraphView/IGraphNodeConstruct.h

  • Committer: Package Import Robot
  • Author(s): Scott Howard, Bret Curtis, Scott Howard
  • Date: 2014-09-18 17:57:48 UTC
  • mfrom: (1.1.1)
  • Revision ID: package-import@ubuntu.com-20140918175748-dd8va78mvpw1jbes
Tags: 3.2.1-1
[ Bret Curtis ]
* Updated license for majority of files from LGPL to Expat (MIT)

[ Scott Howard ]
* New upstream release
* Updated patch to add build option for system GLEW libraries
* All patches accepted upstream except shared_libraries.patch
* Bumped SONAME due to dropped symbols, updated *.symbols and package
  names
* Updated license of debian/* to Expat with permission of all authors
* Don't install Doxygen autogenerated md5 and map files (thanks
  lintian)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#ifndef __GRAPH_NODE_CONSTRUCT_H__
2
 
#define __GRAPH_NODE_CONSTRUCT_H__
3
 
 
4
 
#include "BaseAnimationNode.h"
5
 
 
6
 
namespace demo
7
 
{
8
 
 
9
 
        class IGraphNodeConstruct
10
 
        {
11
 
        public:
12
 
                IGraphNodeConstruct() { }
13
 
                virtual ~IGraphNodeConstruct() { }
14
 
                virtual BaseAnimationNode* create(const std::string& _name) = 0;
15
 
        };
16
 
 
17
 
        template <typename Type>
18
 
        class GraphNodeConstruct :
19
 
                public IGraphNodeConstruct
20
 
        {
21
 
        public:
22
 
                GraphNodeConstruct() { }
23
 
                virtual ~GraphNodeConstruct() { }
24
 
                virtual BaseAnimationNode* create(const std::string& _name)
25
 
                {
26
 
                        return new Type(_name);
27
 
                }
28
 
        };
29
 
 
30
 
}
31
 
 
32
 
#endif // __GRAPH_NODE_CONSTRUCT_H__
 
1
#ifndef __GRAPH_NODE_CONSTRUCT_H__
 
2
#define __GRAPH_NODE_CONSTRUCT_H__
 
3
 
 
4
#include "BaseAnimationNode.h"
 
5
 
 
6
namespace demo
 
7
{
 
8
 
 
9
        class IGraphNodeConstruct
 
10
        {
 
11
        public:
 
12
                IGraphNodeConstruct() { }
 
13
                virtual ~IGraphNodeConstruct() { }
 
14
                virtual BaseAnimationNode* create(const std::string& _name) = 0;
 
15
        };
 
16
 
 
17
        template <typename Type>
 
18
        class GraphNodeConstruct :
 
19
                public IGraphNodeConstruct
 
20
        {
 
21
        public:
 
22
                GraphNodeConstruct() { }
 
23
                virtual ~GraphNodeConstruct() { }
 
24
                virtual BaseAnimationNode* create(const std::string& _name)
 
25
                {
 
26
                        return new Type(_name);
 
27
                }
 
28
        };
 
29
 
 
30
}
 
31
 
 
32
#endif // __GRAPH_NODE_CONSTRUCT_H__