Developer documentation | Axl-2.5.1

axlAbstractNumberType.h
Go to the documentation of this file.
1 /* axlAbstractNumberType.h ---
2  *
3  * Author: Anais Ducoffe
4  * Copyright (C) 2013 - Anais Ducoffe, Inria.
5  */
6 
7 /* Commentary:
8  *
9  */
10 
11 /* Change log:
12  *
13  */
14 
15 #ifndef AXLABSTRACTNUMBERTYPE_H
16 #define AXLABSTRACTNUMBERTYPE_H
17 
18 #include "axlCoreExport.h"
19 
20 #include "axlAbstractData.h"
21 
22 #include <QtCore>
23 
24 class axlPoint;
25 
26 class axlAbstractNumberTypePrivate;
27 
29 {
30  Q_OBJECT
31 public:
32  enum Type {Int,Float,Double};
33 
34 
35 public:
36  axlAbstractNumberType(QObject *parent = 0);
37  ~axlAbstractNumberType(void);
38 
39  virtual QString description(void) const;
40  virtual QString identifier(void) const;
41 
42  double value(void) const;
43 
44 public slots :
45  void setValue(double newValue);
46 
47 public :
48  axlAbstractNumberType& operator =(const axlAbstractNumberType& other);
49 
50 
51  friend QDebug operator<<(QDebug dbg, axlAbstractNumberType line);
52  friend QDebug operator<<(QDebug dbg, axlAbstractNumberType& line);
53  friend QDebug operator<<(QDebug dbg, axlAbstractNumberType *line);
54 
55  QString objectType(void) const;
56 
57 private:
58  axlAbstractNumberTypePrivate *d;
59 };
60 
61 // /////////////////////////////////////////////////////////////////
62 // Debug operators
63 // /////////////////////////////////////////////////////////////////
64 
65 QDebug operator<<(QDebug dbg, axlAbstractNumberType point);
66 QDebug operator<<(QDebug dbg, axlAbstractNumberType& point);
67 QDebug operator<<(QDebug dbg, axlAbstractNumberType *point);
68 
69 #endif// AXLABSTRACTNUMBERTYPE_H
Class axlPoint defines 3D points.
Definition: axlPoint.h:34
QDebug operator<<(QDebug dbg, axlAbstractNumberType point)
#define AXLCORE_EXPORT
Class axlAbstractData defines an API for all type of axel data.