IModelDb.h
Go to the documentation of this file.
1 /*--------------------------------------------------------------------------------------+
2 |
3 | Supplied under applicable software license agreement.
4 |
5 | Copyright (c) 2018 Bentley Systems, Incorporated. All rights reserved.
6 |
7 +---------------------------------------------------------------------------------------*/
8 #pragma once
9 
10 #include "BeSQLite.h"
11 
12 #define PROPERTY_APPNAME_Package "pkge_Main"
13 #define PROPERTY_APPNAME_IModel "imodel"
14 
17  {
22 
23  PACKAGE_SUPPORTED_VERSION_Major = PACKAGE_CURRENT_VERSION_Major, // oldest version of the package schema supported by current api
27  };
28 
29 //=======================================================================================
32 // @bsiclass Bentley Systems
33 //=======================================================================================
35 {
36  struct Spec : PropertySpec
37  {
39  };
40 
41  static Spec PublisherProgram() {return Spec("PublisherProgram");}
42  static Spec PublisherVersion() {return Spec("PublisherVersion");}
43  static Spec IModelType() {return Spec("imodelType");}
44 };
45 
46 //=======================================================================================
47 // @bsiclass Bentley Systems
48 //=======================================================================================
50 {
51  struct Spec : PropertySpec
52  {
54  };
55 
56  static Spec ProfileVersion() {return Spec("SchemaVersion");}
57  static Spec Name() {return Spec("Name");}
58  static Spec Description() {return Spec("Description");}
59  static Spec Client() {return Spec("Client");}
60 };
61 
static Spec ProfileVersion()
Definition: IModelDb.h:56
#define END_BENTLEY_SQLITE_NAMESPACE
Definition: BeSQLite.h:139
The default file attribute.
Every BeSQLite::Db has a table for storing "Properties".
Definition: BeSQLite.h:1797
Definition: IModelDb.h:49
IModelSchemaValues
Definition: IModelDb.h:16
#define PROPERTY_APPNAME_Package
Definition: IModelDb.h:12
static Spec PublisherProgram()
Definition: IModelDb.h:41
static Spec Client()
Definition: IModelDb.h:59
Mode
Definition: BeSQLite.h:1811
static Spec Name()
Definition: IModelDb.h:57
Spec(Utf8CP name)
Definition: IModelDb.h:38
Spec(Utf8CP name)
Definition: IModelDb.h:53
static Spec IModelType()
Definition: IModelDb.h:43
static Spec Description()
Definition: IModelDb.h:58
#define BEGIN_BENTLEY_SQLITE_NAMESPACE
Definition: BeSQLite.h:138
Standard properties that an i-model publisher program should add to the .imodel and ...
Definition: IModelDb.h:34
Utf8Char const * Utf8CP
Definition: Bentley.h:229
static Spec PublisherVersion()
Definition: IModelDb.h:42
#define PROPERTY_APPNAME_IModel
Definition: IModelDb.h:13

Copyright © 2017 Bentley Systems, Incorporated. All rights reserved.