cisst-saw
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
cmnGetChar.h
Go to the documentation of this file.
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /* ex: set filetype=cpp softtabstop=4 shiftwidth=4 tabstop=4 cindent expandtab: */
3 
4 /*
5  Author(s): Anton Deguet, Balazs Vagvolgyi
6  Created on: 2009-03-26
7 
8  (C) Copyright 2009-2014 Johns Hopkins University (JHU), All Rights Reserved.
9 
10 --- begin cisst license - do not edit ---
11 
12 This software is provided "as is" under an open source license, with
13 no warranty. The complete license can be found in license.txt and
14 http://www.cisst.org/cisst/license.txt.
15 
16 --- end cisst license ---
17 
18 */
19 
20 #pragma once
21 
22 #ifndef _cmnGetChar_h
23 #define _cmnGetChar_h
24 
26 
27 // Always the last cisst include
28 #include <cisstCommon/cmnExport.h>
29 
30 // forward declaration for internal data
31 #if (CISST_OS != CISST_WINDOWS)
32 struct cmnGetCharEnvironmentInternals;
33 #endif
34 
38 {
40 #if (CISST_OS != CISST_WINDOWS)
41  cmnGetCharEnvironmentInternals * Internals;
42 #endif
43 
45  bool Activated;
46 
47  public:
48 
50  ~cmnGetCharEnvironment(void);
51 
53  bool Activate(void);
54 
56  bool DeActivate(void);
57 
59  int GetChar(void);
60 };
61 
67 int CISST_EXPORT cmnGetChar(void);
68 
69 
70 #endif // _cmnGetChar_h
71 
#define CISST_EXPORT
Definition: cmnExportMacros.h:50
Definition: cmnGetChar.h:37
int CISST_EXPORT cmnGetChar(void)
Portability across compilers and operating systems tools.
Macros to export the symbols of cisstCommon (in a Dll).