HDK
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
CMD_History.h
Go to the documentation of this file.
1
/*
2
* PROPRIETARY INFORMATION. This software is proprietary to
3
* Side Effects Software Inc., and is not to be reproduced,
4
* transmitted, or disclosed in any way without written permission.
5
*
6
* NAME: CMD library (C++)
7
*
8
* COMMENTS: History logger for command library
9
*
10
*/
11
12
#ifndef __CMD_History_h__
13
#define __CMD_History_h__
14
15
#include "
CMD_API.h
"
16
#include <
UT/UT_NonCopyable.h
>
17
#include <
UT/UT_ValArray.h
>
18
#include <iosfwd>
19
20
class
UT_String
;
21
class
UT_WorkBuffer
;
22
class
CMD_History;
23
class
CMD_Manager
;
24
25
class
CMD_API
CMD_HistoryTable
26
{
27
public
:
28
CMD_HistoryTable
();
29
~
CMD_HistoryTable
();
30
31
UT_NON_COPYABLE
(
CMD_HistoryTable
)
32
33
//
34
// historyExpand returns 1 if substitution was made
35
int
historyExpand(
CMD_Manager
*,
UT_String
&cmd);
36
void
addHistory(
const
char
*cmd);
37
//
38
// getEntry will return the most recent first. i.e. getEntry(0) returns
39
// the most recent command.
40
//
41
const
char
*getCommand(
int
n
)
const
;
42
unsigned
int
entries
()
const
{
return
myHistory.entries(); }
43
44
void
clearAndDestroy();
45
void
saveHistory(std::ostream &os)
const
;
46
47
private
:
48
int
editHistory(
UT_String
&cmd);
49
int
getHistory(
const
char
*
pattern
,
UT_WorkBuffer
&where);
50
51
UT_ValArray<CMD_History *>
myHistory;
52
};
53
54
#endif
UT_WorkBuffer
Definition:
UT_WorkBuffer.h:74
CMD_HistoryTable
Definition:
CMD_History.h:25
UT_ValArray< CMD_History * >
CMD_HistoryTable::entries
unsigned int entries() const
Definition:
CMD_History.h:42
n
GLdouble n
Definition:
glcorearb.h:2008
UT_ValArray.h
CMD_Manager
Definition:
CMD_Manager.h:63
UT_NON_COPYABLE
#define UT_NON_COPYABLE(CLASS)
Define deleted copy constructor and assignment operator inside a class.
Definition:
UT_NonCopyable.h:31
pattern
GLushort pattern
Definition:
glad.h:2583
CMD_API.h
UT_NonCopyable.h
CMD_API
#define CMD_API
Definition:
CMD_API.h:10
UT_String
Definition:
UT_String.h:73
CMD
CMD_History.h
Generated on Sat Dec 21 2024 02:46:35 for HDK by
1.8.6