📄 lightsensor.h
字号:
/******************************************************************************\
*
* File: LightSensor.h
* Creation date: June 23, 2008 10:30
* Latest update: July 09, 2008 16:39
* Author: ClassBuilder
* XXXX
* Purpose: Declaration of class 'LightSensor'
* CB version: ClassBuilder Version 2.9 (PR523)
*
* Modifications: @INSERT_MODIFICATIONS(* )
* July 05, 2008 14:29 Chijinliang
* Added method 'GetRawValue'
* June 24, 2008 19:44 Chijinliang
* Added method 'Passive'
* Added method 'Active'
* June 23, 2008 13:46 Chijinliang
* Deleted inheritance 'Sensor'
* June 23, 2008 13:42 Chijinliang
* Added method 'Initialize'
* Added method 'GetRawValue'
* June 23, 2008 10:53 Chijinliang
* Added method 'LightSensor'
* Updated member 'm_sensorValue'
* June 23, 2008 10:30 Chijinliang
* Added method 'DestructorInclude'
* Added method 'ConstructorInclude'
* Added method 'GetCurrent'
* Added method '~LightSensor'
* Added inheritance 'Sensor'
* Added member 'm_m_sensorValue'
*
* Copyright 2008, XXXXX
* All rights are reserved. Reproduction in whole or part is prohibited
* without the written consent of the copyright owner.
*
\******************************************************************************/
#ifndef _LIGHTSENSOR_H
#define _LIGHTSENSOR_H
/*
儔僀僩僙儞僒乕僋儔僗
*/
class LightSensor
{
private:
void ConstructorInclude();
void DestructorInclude();
private:
unsigned int m_sensorValue;
public:
LightSensor();
virtual ~LightSensor();
void Active() const;
unsigned int GetCurrent();
const unsigned int GetRawValue() const;
const unsigned int GetValue() const;
void Initialize();
void Passive() const;
};
#endif // ndef _LIGHTSENSOR_H
#ifdef CB_INLINES
#ifndef _LIGHTSENSOR_H_INLINES
#define _LIGHTSENSOR_H_INLINES
#endif // ndef _LIGHTSENSOR_H_INLINES
#endif // def CB_INLINES
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -