equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2012, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. |
7 * published by the Free Software Foundation. |
193 char _delim; |
193 char _delim; |
194 public: |
194 public: |
195 DCmdParser() { |
195 DCmdParser() { |
196 _options = NULL; |
196 _options = NULL; |
197 _arguments_list = NULL; |
197 _arguments_list = NULL; |
|
198 _delim = ' '; |
198 } |
199 } |
199 void add_dcmd_option(GenDCmdArgument* arg); |
200 void add_dcmd_option(GenDCmdArgument* arg); |
200 void add_dcmd_argument(GenDCmdArgument* arg); |
201 void add_dcmd_argument(GenDCmdArgument* arg); |
201 GenDCmdArgument* lookup_dcmd_option(const char* name, size_t len); |
202 GenDCmdArgument* lookup_dcmd_option(const char* name, size_t len); |
202 GenDCmdArgument* arguments_list() { return _arguments_list; }; |
203 GenDCmdArgument* arguments_list() { return _arguments_list; }; |