51 lines
1.3 KiB
C
51 lines
1.3 KiB
C
|
/* Pandora data class to represent a value and a timestamp.
|
||
|
|
||
|
Copyright (C) 2006 Artica ST.
|
||
|
Written by Esteban Sanchez.
|
||
|
|
||
|
This program is free software; you can redistribute it and/or modify
|
||
|
it under the terms of the GNU General Public License as published by
|
||
|
the Free Software Foundation; either version 2, or (at your option)
|
||
|
any later version.
|
||
|
|
||
|
This program is distributed in the hope that it will be useful,
|
||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||
|
GNU General Public License for more details.
|
||
|
|
||
|
You should have received a copy of the GNU General Public License along
|
||
|
with this program; if not, write to the Free Software Foundation,
|
||
|
Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||
|
*/
|
||
|
|
||
|
|
||
|
#ifndef __PANDORA_DATA_H__
|
||
|
#define __PANDORA_DATA_H__
|
||
|
|
||
|
#include <string>
|
||
|
#include <windows.h>
|
||
|
|
||
|
using namespace std;
|
||
|
|
||
|
namespace Pandora {
|
||
|
/**
|
||
|
* Class to implement the Pandora Windows service.
|
||
|
*/
|
||
|
class Pandora_Data {
|
||
|
private:
|
||
|
string value;
|
||
|
SYSTEMTIME timestamp;
|
||
|
public:
|
||
|
Pandora_Data ();
|
||
|
Pandora_Data (string value);
|
||
|
~Pandora_Data ();
|
||
|
|
||
|
string getValue () const;
|
||
|
string getTimestamp () const;
|
||
|
void setValue (string value);
|
||
|
};
|
||
|
}
|
||
|
|
||
|
#endif
|
||
|
|