TAP
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Pages
Tap.h
Go to the documentation of this file.
1 
342 #pragma once
343 
348 namespace TAP {
349 
351 #ifndef TAP_FLAG
352 const char flagStart[] = "-";
353 #else
354 const char flagStart[] = TAP_FLAG;
355 #endif
356 
358 #ifndef TAP_NAME
359 const char nameStart[] = "--";
360 #else
361 const char nameStart[] = TAP_NAME;
362 #endif
363 
366 #ifndef TAP_NAMEDELIMITER
367 const char nameDelim = '=';
368 #else
369 const char nameDelim = TAP_NAMEDELIMITER;
370 #endif
371 
374 #ifndef TAP_SKIP
375 const char skip[] = "--";
376 #else
377 const char skip[] = TAP_SKIP;
378 #endif
379 
380 // If TAP_STREAMSAFE is defined, stream operator will first check the result
381 // before writing to storage.
382 //#define TAP_STREAMSAFE 1
383 
384 // If TAP_AUTOFLAG defined, special characters in the argument description will
385 // be used to define flags and names. It has a runtime hit but looks fancy.
386 //#define TAP_AUTOFLAG 1
387 
388 }
389 
390 #include "tap/BaseArgument.hpp"
391 #include "tap/Argument.hpp"
392 #include "tap/TypedArgument.hpp"
394 #include "tap/Parser.hpp"
395 #include "tap/Exceptions.hpp"
396 #include "tap/Operators.hpp"
397 
398 #include "tap/impl/Argument.hpp"
399 #include "tap/impl/TypedArgument.hpp"
400 #include "tap/impl/ArgumentConstraint.hpp"
401 #include "tap/impl/Parser.hpp"
402 #include "tap/impl/Exceptions.hpp"
403 #include "tap/impl/Operators.hpp"
const char skip[]
Define the parsed arg delimiter.
Definition: Tap.h:375
Copyright (c) 2015 Harold Bruintjes.
Copyright (c) 2015 Harold Bruintjes.
const char nameStart[]
Marker for names (>1 letter arg)
Definition: Tap.h:359
Copyright (c) 2015 Harold Bruintjes.
const char nameDelim
Delimiter between name and argument (e.g.
Definition: Tap.h:367
Copyright (c) 2015 Harold Bruintjes.
Copyright (c) 2015 Harold Bruintjes.
const char flagStart[]
Marker for flags (one letter arg)
Definition: Tap.h:352
Copyright (c) 2015 Harold Bruintjes.
Copyright (c) 2015 Harold Bruintjes.