PIP 5.5.3
Platform-Independent Primitives
Public Member Functions | Public Attributes | List of all members
PIPropertyStorage::Property Class Reference

PIPropertyStorage element. More...

#include <pipropertystorage.h>

Public Member Functions

 Property (const PIString &n=PIString(), const PIString &c=PIString(), const PIVariant &v=PIVariant(), int f=0)
 Contructs PIPropertyStorage::Property with name "n", comment "c", value "v" and flags "f".
 
 Property (const Property &o)
 Contructs copy of another PIPropertyStorage::Property "o".
 
Propertyoperator= (const Property &v)
 Assign operator.
 
bool toBool () const
 Returns value as boolean.
 
int toInt () const
 Returns value as integer.
 
float toFloat () const
 Returns value as float.
 
double toDouble () const
 Returns value as double.
 
PIString toString () const
 Returns value as string.
 

Public Attributes

PIString name
 Property name (uniqueue for PIPropertyStorage)
 
PIString comment
 Optional description of property.
 
PIVariant value
 Property value.
 
int flags
 Abstract flags which may be used for user needs.
 

Detailed Description

PIPropertyStorage element.