Page Menu
Home
Phabricator (Chris)
Search
Configure Global Search
Log In
Files
F620159
argument.h
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Authored By
Unknown
Size
968 B
Referenced Files
None
Subscribers
None
argument.h
View Options
#ifndef _paintown_util_argument_h
#define _paintown_util_argument_h
#include
<vector>
#include
<string>
#include
"pointer.h"
class
ArgumentAction
{
public
:
virtual
void
act
()
=
0
;
virtual
~
ArgumentAction
();
};
typedef
std
::
vector
<
Util
::
ReferenceCount
<
ArgumentAction
>
>
ActionRefs
;
class
Argument
{
public
:
/* Keywords on the command line that should invoke this argument */
virtual
std
::
vector
<
std
::
string
>
keywords
()
const
=
0
;
/* Parse more strings from the command line. Any actions that should take place
* after the command line has been parsed should be put into 'actions'
*/
virtual
std
::
vector
<
std
::
string
>::
iterator
parse
(
std
::
vector
<
std
::
string
>::
iterator
current
,
std
::
vector
<
std
::
string
>::
iterator
end
,
ActionRefs
&
actions
)
=
0
;
/* Description of what this argument does */
virtual
std
::
string
description
()
const
=
0
;
bool
isArg
(
const
std
::
string
&
what
)
const
;
virtual
~
Argument
();
};
#endif
File Metadata
Details
Attached
Mime Type
text/x-c++
Expires
Sat, Nov 14, 5:38 PM (14 h, 2 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
132332
Default Alt Text
argument.h (968 B)
Attached To
Mode
R75 R-Tech1
Attached
Detach File
Event Timeline