diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2022-08-05 10:54:12 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2022-08-05 11:10:14 +0900 |
commit | 430373ae38565e0d7f62b8fca0cbad73de73ec7f (patch) | |
tree | 670a7322ddd2732c8824b1fb73090b937e2a1f82 /src/tclap/ArgTraits.h | |
parent | d833de5bbe40d780fe02dc95d1c981a4b1007108 (diff) | |
download | universal-indent-gui-tqt-430373ae38565e0d7f62b8fca0cbad73de73ec7f.tar.gz universal-indent-gui-tqt-430373ae38565e0d7f62b8fca0cbad73de73ec7f.zip |
Format code using uncrustify
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'src/tclap/ArgTraits.h')
-rw-r--r--[-rwxr-xr-x] | src/tclap/ArgTraits.h | 96 |
1 files changed, 50 insertions, 46 deletions
diff --git a/src/tclap/ArgTraits.h b/src/tclap/ArgTraits.h index a89ed12..7a4a892 100755..100644 --- a/src/tclap/ArgTraits.h +++ b/src/tclap/ArgTraits.h @@ -24,58 +24,62 @@ // include this directly #ifndef TCLAP_ARGTRAITS_H -#define TCLAP_ARGTRAITS_H + #define TCLAP_ARGTRAITS_H -namespace TCLAP { +namespace TCLAP +{ + // We use two empty structs to get compile type specialization + // function to work -// We use two empty structs to get compile type specialization -// function to work + /** + * A value like argument value type is a value that can be set using + * operator>>. This is the default value type. + */ + struct ValueLike + { + typedef ValueLike ValueCategory; + }; -/** - * A value like argument value type is a value that can be set using - * operator>>. This is the default value type. - */ -struct ValueLike { - typedef ValueLike ValueCategory; -}; + /** + * A string like argument value type is a value that can be set using + * operator=(string). Usefull if the value type contains spaces which + * will be broken up into individual tokens by operator>>. + */ + struct StringLike + {}; -/** - * A string like argument value type is a value that can be set using - * operator=(string). Usefull if the value type contains spaces which - * will be broken up into individual tokens by operator>>. - */ -struct StringLike {}; + /** + * A class can inherit from this object to make it have string like + * traits. This is a compile time thing and does not add any overhead + * to the inherenting class. + */ + struct StringLikeTrait + { + typedef StringLike ValueCategory; + }; -/** - * A class can inherit from this object to make it have string like - * traits. This is a compile time thing and does not add any overhead - * to the inherenting class. - */ -struct StringLikeTrait { - typedef StringLike ValueCategory; -}; + /** + * A class can inherit from this object to make it have value like + * traits. This is a compile time thing and does not add any overhead + * to the inherenting class. + */ + struct ValueLikeTrait + { + typedef ValueLike ValueCategory; + }; -/** - * A class can inherit from this object to make it have value like - * traits. This is a compile time thing and does not add any overhead - * to the inherenting class. - */ -struct ValueLikeTrait { - typedef ValueLike ValueCategory; -}; - -/** - * Arg traits are used to get compile type specialization when parsing - * argument values. Using an ArgTraits you can specify the way that - * values gets assigned to any particular type during parsing. The two - * supported types are string like and value like. - */ -template<typename T> -struct ArgTraits { - typedef typename T::ValueCategory ValueCategory; - //typedef ValueLike ValueCategory; -}; + /** + * Arg traits are used to get compile type specialization when parsing + * argument values. Using an ArgTraits you can specify the way that + * values gets assigned to any particular type during parsing. The two + * supported types are string like and value like. + */ + template<typename T> + struct ArgTraits + { + typedef typename T::ValueCategory ValueCategory; + //typedef ValueLike ValueCategory; + }; #endif - } // namespace |