Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
GeoModel
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
GeoModelDev
GeoModel
Commits
f0c4a340
Commit
f0c4a340
authored
10 months ago
by
Riccardo Maria Bianchi
Committed by
Johannes Junggeburth
9 months ago
Browse files
Options
Downloads
Patches
Plain Diff
Add getters to retrieve number of nodes of the new tables introduced with the new DB schema
parent
3f4e2b7b
No related branches found
No related tags found
1 merge request
!327
New schema for the GeoModel SQLite database and updated I/O
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
GeoModelIO/GeoModelRead/GeoModelRead/ReadGeoModel.h
+17
-1
17 additions, 1 deletion
GeoModelIO/GeoModelRead/GeoModelRead/ReadGeoModel.h
with
17 additions
and
1 deletion
GeoModelIO/GeoModelRead/GeoModelRead/ReadGeoModel.h
+
17
−
1
View file @
f0c4a340
...
@@ -170,12 +170,28 @@ class ReadGeoModel {
...
@@ -170,12 +170,28 @@ class ReadGeoModel {
};
};
unsigned
long
getNFunctions
()
{
return
m_functions
.
size
();
};
unsigned
long
getNFunctions
()
{
return
m_functions
.
size
();
};
unsigned
long
getNNameTags
()
{
return
m_nameTags
.
size
();
};
unsigned
long
getNNameTags
()
{
return
m_nameTags
.
size
();
};
unsigned
long
getNShapes
()
{
return
m_shapes
.
size
();
};
unsigned
long
getNChildrenConnections
()
{
return
m_allchildren
.
size
();
};
unsigned
long
getNChildrenConnections
()
{
return
m_allchildren
.
size
();
};
std
::
vector
<
std
::
vector
<
std
::
string
>>
getTableFromTableName_String
(
std
::
vector
<
std
::
vector
<
std
::
string
>>
getTableFromTableName_String
(
const
std
::
string_view
tableName
)
{
const
std
::
string_view
tableName
)
{
return
m_dbManager
->
getTableRecords_String
(
tableName
);
return
m_dbManager
->
getTableRecords_String
(
tableName
);
};
};
unsigned
long
getNShapes
()
{
return
m_shapes
.
size
();
};
// TODO: to be removed later
unsigned
long
getNShapes_Box
()
{
return
m_shapes_Box
.
size
();
};
unsigned
long
getNShapes_Cons
()
{
return
m_shapes_Cons
.
size
();
};
unsigned
long
getNShapes_Para
()
{
return
m_shapes_Para
.
size
();
};
unsigned
long
getNShapes_Pcon
()
{
return
m_shapes_Pcon
.
size
();
};
unsigned
long
getNShapes_Pgon
()
{
return
m_shapes_Pgon
.
size
();
};
unsigned
long
getNShapes_SimplePolygonBrep
()
{
return
m_shapes_SimplePolygonBrep
.
size
();
};
unsigned
long
getNShapes_Trap
()
{
return
m_shapes_Trap
.
size
();
};
unsigned
long
getNShapes_Trd
()
{
return
m_shapes_Trd
.
size
();
};
unsigned
long
getNShapes_Tube
()
{
return
m_shapes_Tube
.
size
();
};
unsigned
long
getNShapes_Tubs
()
{
return
m_shapes_Tubs
.
size
();
};
unsigned
long
getNShapes_TwistedTrap
()
{
return
m_shapes_TwistedTrap
.
size
();
};
unsigned
long
getNShapes_UnidentifiedShape
()
{
return
m_shapes_UnidentifiedShape
.
size
();
};
unsigned
long
getNShapes_Shift
()
{
return
m_shapes_Shift
.
size
();
};
unsigned
long
getNShapes_Union
()
{
return
m_shapes_Union
.
size
();
};
unsigned
long
getNShapes_Intersection
()
{
return
m_shapes_Intersection
.
size
();
};
unsigned
long
getNShapes_Subtraction
()
{
return
m_shapes_Subtraction
.
size
();
};
private
:
private
:
void
buildAllShapes
();
// TODO: OLD METHOD, TO BE REMOVED WHEN READY
void
buildAllShapes
();
// TODO: OLD METHOD, TO BE REMOVED WHEN READY
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment