Irrlicht 3D Engine
IOSOperator.h
Go to the documentation of this file.
1 // Copyright (C) 2002-2012 Nikolaus Gebhardt
2 // This file is part of the "Irrlicht Engine".
3 // For conditions of distribution and use, see copyright notice in irrlicht.h
4 
5 #ifndef __I_OS_OPERATOR_H_INCLUDED__
6 #define __I_OS_OPERATOR_H_INCLUDED__
7 
8 #include "IReferenceCounted.h"
9 #include "irrString.h"
10 
11 namespace irr
12 {
13 
15 class IOSOperator : public virtual IReferenceCounted
16 {
17 public:
19  virtual const core::stringc& getOperatingSystemVersion() const = 0;
20 
22 
24  {
25  return core::stringw(getOperatingSystemVersion()).c_str();
26  }
27 
29  virtual void copyToClipboard(const c8* text) const = 0;
30 
32 
33  virtual const c8* getTextFromClipboard() const = 0;
34 
36 
38  virtual bool getProcessorSpeedMHz(u32* MHz) const = 0;
39 
41 
44  virtual bool getSystemMemory(u32* totalBytes, u32* availableBytes) const = 0;
45 
46 };
47 
48 } // end namespace
49 
50 #endif
#define _IRR_DEPRECATED_
Defines a deprecated macro which generates a warning at compile time.
Definition: irrTypes.h:202
char c8
8 bit character variable.
Definition: irrTypes.h:35
Everything in the Irrlicht Engine can be found in this namespace.
Definition: aabbox3d.h:12
_IRR_DEPRECATED_ const wchar_t * getOperationSystemVersion() const
Get the current operation system version as string.
Definition: IOSOperator.h:23
Very simple string class with some useful features.
Definition: irrString.h:37
virtual const c8 * getTextFromClipboard() const =0
Get text from the clipboard.
virtual bool getSystemMemory(u32 *totalBytes, u32 *availableBytes) const =0
Get the total and available system RAM.
unsigned int u32
32 bit unsigned variable.
Definition: irrTypes.h:62
The Operating system operator provides operation system specific methods and information.
Definition: IOSOperator.h:15
virtual void copyToClipboard(const c8 *text) const =0
Copies text to the clipboard.
virtual bool getProcessorSpeedMHz(u32 *MHz) const =0
Get the processor speed in megahertz.
Base class of most objects of the Irrlicht Engine.
virtual const core::stringc & getOperatingSystemVersion() const =0
Get the current operation system version as string.
string< wchar_t > stringw
Typedef for wide character strings.
Definition: irrString.h:1461