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
}
 
enum  ModificationFlag : uint8_t { Properties = 1 << 0 , Structure = 1 << 1 , Geometry = 1 << 2 , All = Properties | Structure | Geometry }
 
enum class  PersistenceStatus : uint32_t
 
enum class  TreeModelType : uint8_t
 

Functions

QString contentTypeToString (TreeModelType type)
 
QString formatVariantByDataType (QVariant &value, eDataType dataType, QLocale &locale, char format='g', int precision=15)
 
QString modificationFlagsToString (ModificationFlags mflags, bool translated, QChar &sep=QChar('|'))
 
QString persistenceStatusToString (PersistenceStatus status, bool translated)
 
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)

xsInt 

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

Custom 

cst

Custom

Issues 

iss

Issues

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.

◆ ModificationFlag

enum ModificationFlag : uint8_t

Flags indicating the types of modifications an object has undergone. These flags can be combined using bitwise OR to represent multiple changes simultaneously.

gom.h

Since
1.0.0, Jan 2026, sl
Enumerator
Properties 

Simple property changes (e.g. values)

Structure 

Structural changes (e.g. hierarchy)

Geometry 

Geometric changes (e.g. mesh)

◆ PersistenceStatus

enum class PersistenceStatus : uint32_t
strong

gom.h

Since
1.0.0, Jan 2026, sl

◆ TreeModelType

enum class TreeModelType : uint8_t
strong

Identifies type of a tree model.

Could be Models (object structure), SmartSets or Viewpoints.

Since
1.0.0, Jan 2026, sl

Function Documentation

◆ contentTypeToString()

QString contentTypeToString ( TreeModelType type)

Converts element of enum TreeModelType to a string.

Since
1.0.0, Jan 2026, sl

◆ 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

◆ modificationFlagsToString()

QString modificationFlagsToString ( ModificationFlags mflags,
bool translated,
QChar & sep = QChar('|') )

Converts modifcation flags to a string.

Parameters
mflagscombination of Modification flag
translated
sepSeperating character (combinations)
Since
1.0.0, Jan 2026, sl

◆ persistenceStatusToString()

QString persistenceStatusToString ( PersistenceStatus status,
bool translated )

Converts persistence status to a string.

Parameters
status
translated
Since
1.0.0, Jan 2026, sl

◆ setVariantFromString()

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