cisst-saw
Loading...
Searching...
No Matches
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
12This software is provided "as is" under an open source license, with
13no warranty. The complete license can be found in license.txt and
14http://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
29
30// forward declaration for internal data
31#if (CISST_OS != CISST_WINDOWS)
32struct cmnGetCharEnvironmentInternals;
33#endif
34
38{
40#if (CISST_OS != CISST_WINDOWS)
41 cmnGetCharEnvironmentInternals * Internals;
42#endif
43
45 bool Activated;
46
47 public:
48
51
53 bool Activate(void);
54
56 bool DeActivate(void);
57
59 int GetChar(void);
60};
61
68
69
70#endif // _cmnGetChar_h
71
Macros to export the symbols of cisstCommon (in a Dll).
#define CISST_EXPORT
Definition cmnExportMacros.h:50
int CISST_EXPORT cmnGetChar(void)
Portability across compilers and operating systems tools.