Developer documentation | Axl-2.5.1

axlAbstractDataReader.h
Go to the documentation of this file.
1 /* axlAbstractDataReader.h ---
2  *
3  * Author: Julien Wintz
4  * Copyright (C) 2008-2011 - Julien Wintz, Inria.
5  * Created: Wed Sep 21 10:36:05 2011 (+0200)
6  * Version: $Id$
7  * Last-Updated: Wed Sep 21 11:06:17 2011 (+0200)
8  * By: Julien Wintz
9  * Update #: 26
10  */
11 
12 /* Commentary:
13  *
14  */
15 
16 /* Change log:
17  *
18  */
19 
20 #ifndef AXLABSTRACTDATAREADER_H
21 #define AXLABSTRACTDATAREADER_H
22 
23 #include "axlCoreExport.h"
24 
26 #include <dtkCoreSupport/dtkAbstractDataReader.h>
27 
28 #include <axlCore/axlFormat.h>
29 
30 class AXLCORE_EXPORT axlAbstractDataReader : public dtkAbstractDataReader
31 {
32  Q_OBJECT
33 
34 public:
36  virtual ~axlAbstractDataReader(void);
37 
38 public:
39  virtual bool accept(const QDomNode& node) = 0;
40  virtual bool reject(const QDomNode& node) = 0;
41 
42  using dtkAbstractDataReader::read;
43  virtual axlAbstractData* read(const QDomNode& node) = 0;
44 
45  void setNameOf(axlAbstractData* data, const QDomElement& e);
46  void setColorOf (axlAbstractData* data, const QDomElement& e);
47  void setSizeOf (axlAbstractData* data, const QDomElement& e);
48  void setShaderOf(axlAbstractData* data, const QDomElement& e);
49 };
50 
51 
52 bool hasChildNode(QDomElement element, const QString& tag);
53 
54 #endif
bool hasChildNode(QDomElement element, const QString &tag)
Definition: axlFormat.h:20
#define AXLCORE_EXPORT
Class axlAbstractData defines an API for all type of axel data.