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_Args.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: Command Library (C++)
7
*
8
* COMMENTS:
9
*
10
*/
11
12
#ifndef __CMD_Args_H__
13
#define __CMD_Args_H__
14
15
#include "
CMD_API.h
"
16
#include <iosfwd>
17
#include <
UT/UT_Args.h
>
18
#include <
UT/UT_String.h
>
19
20
class
CMD_Manager
;
21
class
CMD_Source
;
22
class
CMD_Command
;
23
24
#define CMD_MAX_OPTIONS UT_MAX_OPTIONS
25
26
class
CMD_API
CMD_Args
:
public
UT_Args
27
{
28
public
:
29
CMD_Args
();
30
~
CMD_Args
()
override
;
31
32
std::ostream &
out
() {
return
*my_out; }
33
std::ostream &err(
int
show_line_number = 1);
34
35
/// Print an error message on err()
36
void
error(
const
char
*fmt, ...)
37
SYS_PRINTF_CHECK_ATTRIBUTE
(2, 3);
38
39
void
quietErrors() { myFirstError = 0; }
40
void
showUsage();
41
void
callBaseClassCommand();
42
43
UT_String
commandName();
44
45
private
:
46
void
init(std::ostream *os, std::ostream *es,
CMD_Source
*
src
);
47
48
std::ostream *my_out;
49
std::ostream *my_err;
50
UT_String
myFilename;
51
int
myLineNumber;
52
CMD_Command
*myCommand;
53
int
myFirstError;
54
55
friend
class
CMD_Manager
;
56
};
57
#endif
src
GLenum src
Definition:
glew.h:2410
UT_Args
Definition:
UT_Args.h:29
CMD_Args
Definition:
CMD_Args.h:26
CMD_Command
Definition:
CMD_Command.h:24
UT_String.h
CMD_Args::out
std::ostream & out()
Definition:
CMD_Args.h:32
CMD_Source
Definition:
CMD_Source.h:36
SYS_PRINTF_CHECK_ATTRIBUTE
#define SYS_PRINTF_CHECK_ATTRIBUTE(string_index, first_to_check)
Definition:
SYS_Types.h:433
CMD_Manager
Definition:
CMD_Manager.h:62
UT_Args.h
CMD_API.h
CMD_API
#define CMD_API
Definition:
CMD_API.h:10
UT_String
Definition:
UT_String.h:79
CMD
CMD_Args.h
Generated on Sun Jan 17 2021 05:33:07 for HDK by
1.8.6