File: INCLUDE\MESPARA\MESPARA.H
1 //******************************************************************************
2 //Datei : mespara.h
3 //Projekt : XCTL
4 //Subsystem : Allgemeine Einstellungen
5 //Autor : Jens Klier <klier@informatik.hu-berlin.de>
6 // Institut fuer Informatik,
7 // Humboldt-Universitaet Berlin
8 //Inhalt : Interface der Klasse TMeasurementParameter
9 //******************************************************************************
10 //!neu klier Allgemeine Einstellungen
11
12 #define MaxString 512
13
14 struct THKL
15 {
16 int h, k, l;
17 };
18
19 class TMeasurementParameter
20 {
21 public:
22 TMeasurementParameter();
23 void Load( LPCSTR IniFile );
24 void Save( LPCSTR IniFile );
25 LPCSTR GetComment( void );
26 void SetComment( LPCSTR sCom );
27 LPSTR GetReflection( LPSTR sRef );
28 LPSTR GetReflection( THKL& thklRef, LPSTR sRef );
29 BOOL SetReflection( LPCSTR sRef );
30 LPSTR GetOrientation( LPSTR SOri );
31 LPSTR GetOrientation( THKL& thklOri, LPSTR sOri );
32 BOOL SetOrientation( LPCSTR sOri );
33 LPCSTR GetUser( void );
34 void SetUser( LPCSTR sUse );
35 LPCSTR GetTarget( void );
36 void SetTarget( LPCSTR sTar );
37 LPCSTR GetTargetBulk( void );
38 void SetTargetBulk( LPCSTR sTaB );
39 LPSTR GetWaveLength( LPSTR WaL );
40 float GetWaveLength( void );
41 BOOL SetWaveLength( LPCSTR sWaL );
42 LPSTR GetVoltage( LPSTR sVol );
43 int GetVoltage( void );
44 BOOL SetVoltage( LPCSTR sVol );
45 BOOL SetVoltage( const int& iVol );
46 LPSTR GetCurrent( LPSTR sCur );
47 int GetCurrent( void );
48 BOOL SetCurrent( LPCSTR sCur );
49 BOOL SetCurrent( const int& iVol );
50
51 private:
52 void GetHKL( THKL& thklHKL, LPSTR sHKL );
53 BOOL SetHKL( THKL& thklHKL, LPCSTR sHKL );
54
55 char sUser[MaxString];
56 char sComment[2*MaxString];
57 char sTarget[MaxString];
58 char sTargetBulk[MaxString];
59
60 THKL thklReflection;
61 THKL thklOrientation;
62 float fWaveLength;
63 int iVoltage;
64 int iCurrent;
65 char szApplication[MaxString];
66 };
67
68 // LastLine
69
70
71