source: libs/QtGui/inc/SgMigration.h @ 445

Revision 445, 1013 bytes checked in by lmalek, 10 years ago (diff)

Samgar edition by WRUT. Based on Qt. Initial import.

Line 
1#ifndef SGMIGRATION_H
2#define SGMIGRATION_H
3
4#include <yarp/os/all.h>
5#include <iostream>
6
7namespace Sg
8{
9    /** TODO: find out what it is for?
10     *
11     *  Probably this class is responsible for writing to the file "Personality.txt"
12     *  data about the agent to allow migration process. If it is so the name of the
13     *  file sould be pedefined and changeable via some config file.
14     *
15     *  Later "Personality.txt" file is used by the MainComponent::Migrate()
16     *  Probably this is just a mockup and it does not work, or at at least there is
17     *  same problem tih the MigrationButton
18     *
19     */
20    class MigrationPortClass : public yarp::os::BufferedPort<yarp::os::Bottle>
21    {
22    public:
23        int Ivebeenused;
24        std::string Myvalue;
25
26        MigrationPortClass();
27        ~MigrationPortClass();
28
29        /** it opens Perasonality.txt file on write the content of the bottle to it
30         */
31        virtual void onRead(yarp::os::Bottle& b);
32    };
33}
34#endif // SGMIGRATION_H
Note: See TracBrowser for help on using the repository browser.