|
sprint 1-alpha
|
Wrapper per leggere o scrivere dal registro di windows. More...
#include <Registry.h>
Inherited by sprint::gtl::ReadConfiguration, and sprint::gtl::WriteConfiguration.
Public Member Functions | |
| Registry (HKEY hKey, LPCSTR lpSubKey) | |
| Apre il registro e permette di impostare la modalita' di Binding. | |
| Registry * | CreateKey (LPCSTR lpszSubKey) const |
| Crea una sottochiave della corrente (fa un po' schifio) | |
| bool | Read (LPCSTR path, float *value) const |
| bool | Read (LPCSTR path, double *value) const |
Scrivere un dato nel registro | |
| LONG | Write (LPCTSTR path, const BYTE *value, DWORD cbData) const |
| LONG | Write (LPCSTR path, LPCSTR str) const |
| Scrive una stringa. | |
| LONG | Write (LPCSTR path, const std::string &str) const |
| Scrive una stringa c++. | |
| LONG | Write (LPCSTR path, DWORD value) const |
| Scrive un unsigned long? | |
| LONG | Write (LPCSTR path, unsigned int value) const |
| Scrive un unsigned int. | |
| LONG | Write (LPCSTR path, int value) const |
| Scrive un int. | |
| LONG | Write (LPCSTR path, long int value) const |
| Scrive un long int. | |
| LONG | Write (LPCSTR path, bool value) const |
| Scrive un boolean. | |
| LONG | Write (LPCSTR path, float value) const |
| LONG | Write (LPCSTR path, double value) const |
| bool | Read (LPCSTR path, unsigned int *out) const |
| Leggere un dato dal registro. | |
| bool | Read (LPCSTR path, int *out) const |
| legge un int | |
| bool | Read (LPCSTR path, unsigned long *out) const |
| legge un long int | |
| bool | Read (LPCSTR path, long *out) const |
| legge un int | |
| bool | Read (LPCSTR path, bool *out) const |
| legge un boolean | |
| bool | Read (LPCSTR path, char *str, unsigned int cbSize) const |
| legge una stringa | |
| bool | Read (LPCSTR path, std::string &str) const |
| Legge una stringa C++. | |
| bool | Read (LPCSTR path, LPBYTE out, LPDWORD lptype, LPDWORD lpsize) const |
| DWORD | Read (LPCSTR path, DWORD def) const |
| legge long int (con un parametro di default opzionale) | |
| bool | Read (LPCSTR path, bool def) const |
| Legge un boolean. | |
Protected Attributes | |
| HKEY | hRegKey |
| La chiave corrente. | |
| unsigned long | result |
Wrapper per leggere o scrivere dal registro di windows.
| bool sprint::gtl::Registry::Read | ( | LPCSTR | path, |
| LPBYTE | out, | ||
| LPDWORD | lptype, | ||
| LPDWORD | lpsize | ||
| ) | const |
Legge un blocco di memoria binaria.
| out | un buffer da riempire |
| lptype | ritorna il tipo di dato letto |
| lpsize | contiene in input la dimensione da leggere e in output la dimensione letta |
| DWORD sprint::gtl::Registry::Read | ( | LPCSTR | path, |
| DWORD | def | ||
| ) | const |
legge long int (con un parametro di default opzionale)
legge con un parametro di default. ritorna il parametro del registro se esiste, altrimenti il default
| bool sprint::gtl::Registry::Read | ( | LPCSTR | path, |
| unsigned int * | out | ||
| ) | const |
Leggere un dato dal registro.
legge un unsigned int
| LONG sprint::gtl::Registry::Write | ( | LPCTSTR | path, |
| const BYTE * | value, | ||
| DWORD | cbData | ||
| ) | const |
Scrive un dato RAW binario.
| path | nome della chiave |
| value | puntatore alla memoria da salvare |
| cbData | numero di bytes della memoria da salvare |
unsigned long sprint::gtl::Registry::result [protected] |
Il risultato dell'aperta del registro TODO: non e' usata! attenzione!
1.7.4