COLNEO Pro 1.0
Loading...
Searching...
No Matches
gom Namespace Reference

Data Structures

class  PropertyType
 
class  PropertyTypeKey
 

Enumerations

enum class  eDataType {
}
 
enum class  eDomain : uint32_t {
}
 
enum  eObjectStatus {
  None = 0 , Visible = 1 << 0 , Selected = 1 << 1 , Wired = 1 << 2 ,
  Locked = 1 << 3
}
 

Functions

QString formatVariantByDataType (QVariant &value, eDataType dataType, QLocale &locale, char format='g', int precision=15)
 
QList< BaseObject * > reduceToTopLevelObjects (QList< BaseObject * > &objectList)
 
 separateModelsFromObjects (BaseObject *rootObject, QList< IModel * > &models, QSet< BaseObject * > &objects, QSet< ProxyObject * > &proxies)
 
bool setVariantFromString (QVariant &variant, QString &value, eDataType dataType, QLocale &locale)
 

Detailed Description

Generic Object Model.

Since
1.0, Jan 2025, sl

Enumeration Type Documentation

◆ eDataType

enum class eDataType
strong

Available data types.

Since
1.0, Jan 2025
Enumerator
xsString 

String data type.

xsLong 

Long integer data type (64 bit)

xsInteger 

Integer data type (32 bit)

xsDouble 

Double precision floating point data type (64 bit)

xsFloat 

Single precision floating point data type (32 bit)

xsBoolean 

Boolean data type (true/false)

xsDate 

Date data type (YYYY-MM-DD)

xsDateTime 

Date with time data type (ISO 8601)

xsID 

ID data type.

xsIDREF 

ID Reference data type.

xsAnyURI 

Any URI data type.

xsObject 

Non-XML Schema data type, handles JSON objects/arrays.

◆ eDomain

enum class eDomain : uint32_t
strong

Available domains in the generic object model (GOM).

Since
1.0, Jul 2025
Enumerator
Design 

geo

Geometry, Design

Activities 

act

Activities, Time Schedules

BoQ 

boq

Bill Of Quantities, Work Scope

Documents 

doc

Documents

Types 

typ

Object Types

Issues 

iss

Issues

Custom 

cst

Generic

All 

all

All Domains

◆ eObjectStatus

Object status.

Enumerator
None 

No status.

Visible 

Object is visible.

Selected 

Object is selected.

Wired 

Object is shown in wireframe mode.

Locked 

Object is locked and cannot be modified.

Function Documentation

◆ formatVariantByDataType()

QString formatVariantByDataType ( QVariant & value,
eDataType dataType,
QLocale & locale,
char format = 'g',
int precision = 15 )

Replacement for the build-in QVariant::toString() method which does not take locale settings into account.

Parameters
value
dataType
locale
format'f' or 'g'
precision
Returns
Since
1.0, Jun 2025, sl

◆ reduceToTopLevelObjects()

QList< BaseObject * > reduceToTopLevelObjects ( QList< BaseObject * > & objectList)

Remove nested objects from a list of objects.

Parameters
objectList
Returns
Top-level objects

◆ separateModelsFromObjects()

separateModelsFromObjects ( BaseObject * rootObject,
QList< IModel * > & models,
QSet< BaseObject * > & objects,
QSet< ProxyObject * > & proxies )

Collect objects and models from root. The child objects of a model are not collected, the recursion ends at this branch.

Parameters
[out]models
rootObject
[out]objects
[out]proxies
Since
1.0, Jul 2025, sl

◆ setVariantFromString()

bool setVariantFromString ( QVariant & variant,
QString & value,
eDataType dataType,
QLocale & locale )
Parameters
variant
value
dataType
locale
Returns
Since
1.0, Jun 2025, sl