Commit 3170730d authored by Sebastian Eichelbaum's avatar Sebastian Eichelbaum
Browse files

[CHANGE] - added several (short)alias for some property types

parent 8b5f9537
......@@ -24,8 +24,3 @@
#include "WPropertyVariable.h"
void hallo()
{
WPropertyVariable< bool > p( "ich", "du", false );
}
......@@ -28,7 +28,9 @@
#include <stdint.h>
#include <string>
#include <typeinfo>
#include <list>
#include <boost/filesystem.hpp>
#include "WFlag.h"
#include "WCondition.h"
......@@ -189,5 +191,38 @@ std::string WPropertyVariable< T >::getDescription()
return m_description;
}
/**
* Some convenience type alias for a even more easy usage of WPropertyVariable
*/
/**
* Alias for int32_t property variables.
*/
typedef WPropertyVariable< int32_t > propInt;
/**
* Alias for int32_t property variables.
*/
typedef WPropertyVariable< double > propDouble;
/**
* Alias for bool property variables.
*/
typedef WPropertyVariable< bool > propBool;
/**
* Alias for string property variables.
*/
typedef WPropertyVariable< std::string > propString;
/**
* Alias for filename property variables.
*/
typedef WPropertyVariable< boost::filesystem::path > propFilename;
/**
* Alias for string list property variables.
*/
typedef WPropertyVariable< std::list< std::string > > propList;
#endif // WPROPERTYVARIABLE_H
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment