File: Task.h

package info (click to toggle)
atlas-cpp 0.5.98-3
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 2,652 kB
  • ctags: 2,284
  • sloc: sh: 8,305; cpp: 6,372; python: 1,471; makefile: 216
file content (28 lines) | stat: -rw-r--r-- 522 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
// This file may be redistributed and modified only under the terms of
// the GNU Lesser General Public License (See COPYING for details).
// Copyright (C) 2000 Michael Day

#ifndef ATLAS_TASK_H
#define ATLAS_TASK_H

namespace Atlas {

/* Atlas task

A task can be polled. Currently, Codecs and Negotiates are both Tasks. This is
a rather minimal interface and may perhaps fade away.

@see Codec
@see Negotiate
*/

class Task
{
    public:

    virtual void poll(bool can_get = true) = 0;
};

} // Atlas namespace

#endif