QGIS API Documentation 3.43.0-Master (c67cf405802)
qgslocalec.h
Go to the documentation of this file.
1/***************************************************************************
2 qgslocalec.h - temporary C numeric locale
3 -------------------
4 begin : Jun 15th 2015
5 copyright : (C) 2015 by Juergen E. Fischer
6 email : jef at norbit dot de
7 ***************************************************************************/
8
9/***************************************************************************
10 * *
11 * This program is free software; you can redistribute it and/or modify *
12 * it under the terms of the GNU General Public License as published by *
13 * the Free Software Foundation; either version 2 of the License, or *
14 * (at your option) any later version. *
15 * *
16 ***************************************************************************/
17
18#ifndef QGSLOCALENUMC_H
19#define QGSLOCALENUMC_H
20
21#define SIP_NO_FILE
22
23#include <QMutex>
24
25#include "qgis_core.h"
26
31class CORE_EXPORT QgsLocaleNumC
32{
33 char *mOldlocale = nullptr;
34 static QMutex sLocaleLock;
35
36 public:
39
40 QgsLocaleNumC( const QgsLocaleNumC &rh ) = delete;
41 QgsLocaleNumC &operator=( const QgsLocaleNumC &rh ) = delete;
42
43};
44
45#endif // QGSLOCALENUMC_H
Sets the current locale to the c locale for the lifetime of the object.
Definition qgslocalec.h:32
QgsLocaleNumC(const QgsLocaleNumC &rh)=delete
QgsLocaleNumC & operator=(const QgsLocaleNumC &rh)=delete