/usr/include/libwildmagic/Wm5Command.h is in libwildmagic-dev 5.13-1ubuntu3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 | // Geometric Tools, LLC
// Copyright (c) 1998-2014
// Distributed under the Boost Software License, Version 1.0.
// http://www.boost.org/LICENSE_1_0.txt
// http://www.geometrictools.com/License/Boost/LICENSE_1_0.txt
//
// File Version: 5.0.0 (2010/01/01)
#ifndef WM5COMMAND_H
#define WM5COMMAND_H
namespace Wm5
{
class Command
{
public:
// Construction and destruction.
friend class Memory;
Command (int numArguments, char** arguments);
Command (char* commandLine);
~Command ();
// The return value is the index of the first excess argument.
int ExcessArguments ();
// Set bounds for numerical arguments. If bounds are required, they must
// be set for each argument.
Command& Min (double value);
Command& Max (double value);
Command& Inf (double value);
Command& Sup (double value);
// The return value of each of the following methods is the option index
// within the argument array.
// Use the bool methods for options which take no argument, for
// example in
// myprogram -debug -x 10 -y 20 filename
// the option -debug has no argument.
int GetBoolean (const char* name); // returns existence of option
int GetBoolean (const char* name, bool& value);
int GetInteger (const char* name, int& value);
int GetFloat (const char* name, float& value);
int GetDouble (const char* name, double& value);
int GetString (const char* name, char*& value);
int GetFilename (char*& name);
// Last-error reporting.
const char* GetLastError ();
protected:
// Singly linked list for command-line arguments.
class Argument
{
public:
Argument (char* item, Argument* next);
~Argument ();
char* Item;
Argument* Next;
};
// Support for construction.
void Initialize ();
// Command line information.
int mNumArguments; // number of arguments
char** mArguments; // argument list (array of strings)
char* mCommandLine; // argument list (single string)
bool* mUsed; // keeps track of arguments already processed
// Parameters for bounds checking.
double mSmall; // lower bound for numerical argument (min or inf)
double mLarge; // upper bound for numerical argument (max or sup)
bool mMinSet; // if true, compare: small <= arg
bool mMaxSet; // if true, compare: arg <= large
bool mInfSet; // if true, compare: small < arg
bool mSupSet; // if true, compare: arg < large
// Last-error strings.
const char* mLastError;
static char msOptionNotFound[];
static char msArgumentRequired[];
static char msArgumentOutOfRange[];
static char msFilenameNotFound[];
};
}
#endif
|