QGVGvcPrivate.h
Go to the documentation of this file.
1 /***************************************************************
2 QGVCore
3 Copyright (c) 2014, Bergont Nicolas, All rights reserved.
4 
5 This library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Lesser General Public
7 License as published by the Free Software Foundation; either
8 version 3.0 of the License, or (at your option) any later version.
9 
10 This library is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Lesser General Public License for more details.
14 
15 You should have received a copy of the GNU Lesser General Public
16 License along with this library.
17 ***************************************************************/
18 
19 #ifndef QGVGVCPRIVATE_H
20 #define QGVGVCPRIVATE_H
21 
22 #include <gvc.h>
23 
25 {
26  public:
27  explicit QGVGvcPrivate(GVC_t *context = NULL);
28 
29  void setContext(GVC_t *context);
30  GVC_t* context() const;
31 
32  // operators to implicit cast from QGVGvcPrivate* into
33  // GVC_t* seems not to work,
34  // because of typedef GVC_t
35 // inline operator const GVC_t* () const
36 // {
37 // return const_cast<VC_t*>(context());
38 // }
39 
40 // inline operator struct GVC_t* ()
41 // {
42 // return context();
43 // }
44 
45  private:
46  GVC_t* _context;
47 };
48 
49 #endif
GVC_t * context() const
void setContext(GVC_t *context)
QGVGvcPrivate(GVC_t *context=NULL)
Definition: QGVGvcPrivate.h:24
#define NULL
Definition: CommonTypes.hh:31