<commit_before>#ifndef _TEST_APP
#define _TEST_APP

#include "TableApp.hpp"


///Example of a class that receives events from direct objects and direct fingers
///inheritance: dummylistener-->OnTable-->CanDirectObjects-->CanDirectFingers-->Graphic
//#include "InputGestureDirectObjects.hpp"
//#include "InputGestureDirectFingers.hpp"
//#include "Graphic.hpp"
//class dummylistener: public OnTable< tuio::CanDirectObjects < tuio::CanDirectFingers < Graphic > > >
//{
//    public:
//    virtual void newCursor(tuio::DirectFinger *){std::cout << "added direct cur" << std::endl;}
//    virtual void removeCursor(tuio::DirectFinger *){std::cout << "removed direct cur" << std::endl;}
//    virtual void newObject(tuio::DirectObject *){std::cout << "added direct obj" << std::endl;}
//    virtual void removeObject(tuio::DirectObject *){std::cout << "removed direct obj" << std::endl;}
//};


///Example of a class that draws a circle at the middle of the screen
/// it rewrites all methods from 'graphic': draw, update and resize
//#include "Graphic.hpp"
//#include "GlobalConfig.hpp"
//class dummyGraphic: public Graphic
//{
//    public:
//        virtual void draw(){
//            ofCircle(GlobalConfig::getWidth() /2,GlobalConfig::getHeight()/2,0.04);
//        }
//        virtual void update(){}
//        virtual void resize(int w, int h){}
//};

///Example of a class that draws a circle where the last finger added is
//#include "InputGestureDirectFingers.hpp"
//#include "Graphic.hpp"
//class dummyListenerGraphic: public OnTable < tuio::CanDirectFingers < Graphic > >
//{
//    tuio::DirectFinger * finger;
//    public:
//        dummyListenerGraphic():finger(NULL){}
//        virtual void draw(){
//            if(finger != NULL) ofCircle(finger->getX(),finger->getY(),0.02f);
//        }
//        virtual void resize(int w, int h){}
//        virtual void newCursor(tuio::DirectFinger * _finger){
//            finger = _finger;
//        }
//        virtual void removeCursor(tuio::DirectFinger * f){
//            if(f == finger) finger = NULL;
//        }
//};

class testApp : public TableApp{
	public:
        testApp():TableApp(){}
        ///To use render_to_texture, change the constructor for the following line:
        //testApp():TableApp(true){}
		void Setup();
		void Update();
		void Draw();
		void WindowResized(int w, int h);

};<commit_msg>BugFix: testApp constructor dependent of Base class<commit_after>#ifndef _TEST_APP
#define _TEST_APP

#include "TableApp.hpp"
#include "Graphic.hpp"

///Example of a class that receives events from direct objects and direct fingers
///inheritance: dummylistener-->OnTable-->CanDirectObjects-->CanDirectFingers-->Graphic
//#include "InputGestureDirectObjects.hpp"
//#include "InputGestureDirectFingers.hpp"
//class dummylistener: public OnTable< tuio::CanDirectObjects < tuio::CanDirectFingers < Graphic > > >
//{
//    public:
//    virtual void newCursor(tuio::DirectFinger *){std::cout << "added direct cur" << std::endl;}
//    virtual void removeCursor(tuio::DirectFinger *){std::cout << "removed direct cur" << std::endl;}
//    virtual void newObject(tuio::DirectObject *){std::cout << "added direct obj" << std::endl;}
//    virtual void removeObject(tuio::DirectObject *){std::cout << "removed direct obj" << std::endl;}
//};


///Example of a class that draws a circle at the middle of the screen
/// it rewrites all methods from 'graphic': draw, update and resize
//#include "GlobalConfig.hpp"
//class dummyGraphic: public Graphic
//{
//    public:
//        virtual void draw(){
//            ofCircle(GlobalConfig::getWidth() /2,GlobalConfig::getHeight()/2,0.04);
//        }
//        virtual void update(){}
//        virtual void resize(int w, int h){}
//};

///Example of a class that draws a circle where the last finger added is
//#include "InputGestureDirectFingers.hpp"
//class dummyListenerGraphic: public OnTable < tuio::CanDirectFingers < Graphic > >
//{
//    tuio::DirectFinger * finger;
//    public:
//        dummyListenerGraphic():finger(NULL){}
//        virtual void draw(){
//            if(finger != NULL) ofCircle(finger->getX(),finger->getY(),0.02f);
//        }
//        virtual void resize(int w, int h){}
//        virtual void newCursor(tuio::DirectFinger * _finger){
//            finger = _finger;
//        }
//        virtual void removeCursor(tuio::DirectFinger * f){
//            if(f == finger) finger = NULL;
//        }
//};

class testApp : public TableApp{
	public:
		void Setup();
		void Update();
		void Draw();
		void WindowResized(int w, int h);

};
{'fraction_non_alphanumeric': 0.15861918287087612, 'fraction_numerical': 0.0034957395674022284, 'mean_word_length': 3.180821917808219, 'pattern_counts': {'":': 0, '<': 45, '<?xml version=': 0, '>': 25, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7028520', 'n_tokens_mistral': 1411, 'n_tokens_neox': 1386, 'n_words': 382}