comparison src/share/vm/services/diagnosticFramework.hpp @ 4932:f1cb6f9cfe21

7145243: Need additional specializations for argument parsing framework Reviewed-by: acorn, fparain Contributed-by: nils.loodin@oracle.com
author fparain
date Wed, 15 Feb 2012 12:17:30 -0800
parents a42c07c38c47
children d2a62e0f25eb
comparison
equal deleted inserted replaced
4931:64fc5ac1b770 4932:f1cb6f9cfe21
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; };