ALBA
albaHelpManager.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: ALBA (Agile Library for Biomedical Applications)
4 Module: albaHelpManager
5 Authors: Nicola Vanella
6
7 Copyright (c) BIC
8 All rights reserved. See Copyright.txt or
9
10
11 This software is distributed WITHOUT ANY WARRANTY; without even
12 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
13 PURPOSE. See the above copyright notice for more information.
14
15=========================================================================*/
16
17#ifndef __albaHelpManager_H__
18#define __albaHelpManager_H__
19
20//----------------------------------------------------------------------------
21// includes :
22//----------------------------------------------------------------------------
23#include "albaDefines.h"
24#include <set>
25
26//----------------------------------------------------------------------------
27// forward reference
28//----------------------------------------------------------------------------
31
35class ALBA_EXPORT albaHelpManager
36{
37public:
38
41
44
45 bool HasHelpEntry(albaString typeName);
46 void ShowHelpEntry(albaString typeName);
47 void ShowHelp();
48 void SetHelpFile(albaString fileName);;
49
50private:
51 int ParseHelpFile();
52 int GetLine(FILE *fp, char *lineBuffer);
53 int ReadInit(albaString &fileName);
54 void ReadFinalize();
55
56 albaString m_HelpFileName;
57 albaString m_HelpUrl;
58 std::set<albaString> m_HelpEntry;
59
60 FILE * m_FilePointer;
61 char *m_Buffer;
62 int m_BufferLeft;
63 int m_BufferPointer;
64 char *m_Line;
65 long m_FileSize;
66 long m_BytesReaded;
67
68 friend class albaLogicWithManagers; // class albaHelpManager can now access data directly
69 //friend class albaHelpManagerTest; // for testing
70};
71#endif
class name: albaGUISettingsDialog.
Class Name: albaHelpManager.
bool HasHelpEntry(albaString typeName)
~albaHelpManager()
Default destructor.
albaHelpManager()
Default constructor.
void SetHelpFile(albaString fileName)
void ShowHelpEntry(albaString typeName)
albaLogicWithManagers provide:
albaString - performs common string operations on c-strings.
Definition: albaString.h:43
class name: albaOpWizardWait Simple op with only an next-step button create to insert pause during wi...