| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2013 Google Inc. | 2 * Copyright 2013 Google Inc. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
| 5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
| 6 */ | 6 */ |
| 7 | 7 |
| 8 #ifndef SK_COMMAND_LINE_FLAGS_H | 8 #ifndef SK_COMMAND_LINE_FLAGS_H |
| 9 #define SK_COMMAND_LINE_FLAGS_H | 9 #define SK_COMMAND_LINE_FLAGS_H |
| 10 | 10 |
| 11 #include "../private/SkTArray.h" | 11 #include "../private/SkTArray.h" |
| 12 #include "../private/SkTDArray.h" |
| 12 #include "SkString.h" | 13 #include "SkString.h" |
| 13 #include "SkTDArray.h" | |
| 14 | 14 |
| 15 /** | 15 /** |
| 16 * Including this file (and compiling SkCommandLineFlags.cpp) provides command
line | 16 * Including this file (and compiling SkCommandLineFlags.cpp) provides command
line |
| 17 * parsing. In order to use it, use the following macros in global | 17 * parsing. In order to use it, use the following macros in global |
| 18 * namespace: | 18 * namespace: |
| 19 * | 19 * |
| 20 * DEFINE_bool(name, defaultValue, helpString); | 20 * DEFINE_bool(name, defaultValue, helpString); |
| 21 * DEFINE_string(name, defaultValue, helpString); | 21 * DEFINE_string(name, defaultValue, helpString); |
| 22 * DEFINE_int32(name, defaultValue, helpString); | 22 * DEFINE_int32(name, defaultValue, helpString); |
| 23 * DEFINE_double(name, defaultValue, helpString); | 23 * DEFINE_double(name, defaultValue, helpString); |
| (...skipping 463 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 487 double* fDoubleValue; | 487 double* fDoubleValue; |
| 488 double fDefaultDouble; | 488 double fDefaultDouble; |
| 489 SkCommandLineFlags::StringArray* fStrings; | 489 SkCommandLineFlags::StringArray* fStrings; |
| 490 // Both for the help string and in case fStrings is empty. | 490 // Both for the help string and in case fStrings is empty. |
| 491 SkString fDefaultString; | 491 SkString fDefaultString; |
| 492 | 492 |
| 493 // In order to keep a linked list. | 493 // In order to keep a linked list. |
| 494 SkFlagInfo* fNext; | 494 SkFlagInfo* fNext; |
| 495 }; | 495 }; |
| 496 #endif // SK_COMMAND_LINE_FLAGS_H | 496 #endif // SK_COMMAND_LINE_FLAGS_H |
| OLD | NEW |