PIP 5.6.1
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) More...
 
PIString comment
 Optional description of property. More...
 
PIVariant value
 Property value. More...
 
int flags
 Abstract flags which may be used for user needs. More...
 

Detailed Description

PIPropertyStorage element.

Member Data Documentation

◆ name

PIString PIPropertyStorage::Property::name

Property name (uniqueue for PIPropertyStorage)

Unique identifier for the property within a PIPropertyStorage instance.

◆ comment

PIString PIPropertyStorage::Property::comment

Optional description of property.

Additional descriptive text providing information about the property's purpose or usage.

◆ value

PIVariant PIPropertyStorage::Property::value

Property value.

The value stored in the property, which can be of any type supported by PIVariant.

◆ flags

int PIPropertyStorage::Property::flags

Abstract flags which may be used for user needs.

User-defined flags for application-specific property management.