Hide menu
Loading...
Searching...
No Matches
cadex::ModelData_BIMPropertyLibrary Class Reference

PropertyLibrary represents a way to manage properties of elements, materials. PropertyLibrary provides access to set of named property tables. More...

Inheritance diagram for cadex::ModelData_BIMPropertyLibrary:
cadex::Base_PublicObject

Classes

class  PropertyTableIterator
 Iterator over property tables contained in property library. More...
 

Public Member Functions

 ModelData_BIMPropertyLibrary ()
 Constructor.
 
size_t NumberOfTables () const
 Returns the number of property tables contained in.
 
void Add (const ModelData_PropertyTable &theTable)
 Adds the property table.
 
void Add (const ModelData_BIMPropertyLibrary &theLibrary)
 Adds all property tables from library.
 
ModelData_PropertyTable Table (const Base_UTF16String &theTableName) const
 Gets the property table with specified name.
 
bool FindProperty (const Base_UTF16String &theName, I32 &theValue) const
 Finds the property with specified name in all property tables contained.
 
bool FindProperty (const Base_UTF16String &theName, double &theValue) const
 Finds the property with specified name in all property tables contained.
 
bool FindProperty (const Base_UTF16String &theName, Base_UTF16String &theValue) const
 Finds the property with specified name in all property tables contained.
 
- Public Member Functions inherited from cadex::Base_PublicObject
void Nullify ()
 Resets reference to implementation object.
 
bool IsNull () const
 Returns true if the object is nullified.
 
 operator bool () const
 Casts the object to the bool type.
 
internal::Base_HandledObject * Impl () const
 Return a handle to backend (reserved for internal use).
 

Additional Inherited Members

- Protected Member Functions inherited from cadex::Base_PublicObject
 Base_PublicObject (const internal::Base_HandledObject *theObject)
 Constructor (reserved for internal use).
 
template<typename T >
T * GetOrCreateImpl ()
 Reserved for internal use.
 

Detailed Description

PropertyLibrary represents a way to manage properties of elements, materials. PropertyLibrary provides access to set of named property tables.

Constructor & Destructor Documentation

◆ ModelData_BIMPropertyLibrary()

cadex::ModelData_BIMPropertyLibrary::ModelData_BIMPropertyLibrary ( )

Constructor.

Creates property library object.

Member Function Documentation

◆ FindProperty() [1/3]

bool cadex::ModelData_BIMPropertyLibrary::FindProperty ( const Base_UTF16String theName,
Base_UTF16String theValue 
) const

Finds the property with specified name in all property tables contained.

Uses value of the first found occurrence. For retrieving property from concrete table use Table() method or ModelData_BIMPropertyLibrary::PropertyTableIterator instance.

◆ FindProperty() [2/3]

bool cadex::ModelData_BIMPropertyLibrary::FindProperty ( const Base_UTF16String theName,
double &  theValue 
) const

Finds the property with specified name in all property tables contained.

Uses value of the first found occurrence. For retrieving property from concrete table use Table() method or ModelData_BIMPropertyLibrary::PropertyTableIterator instance.

◆ FindProperty() [3/3]

bool cadex::ModelData_BIMPropertyLibrary::FindProperty ( const Base_UTF16String theName,
I32 theValue 
) const

Finds the property with specified name in all property tables contained.

Uses value of the first found occurrence. For retrieving property from concrete table use Table() method or ModelData_BIMPropertyLibrary::PropertyTableIterator instance.

◆ Table()

ModelData_PropertyTable cadex::ModelData_BIMPropertyLibrary::Table ( const Base_UTF16String theTableName) const

Gets the property table with specified name.

If property library has no a table with specified name, returns empty table;