Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
otb
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
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
Antoine Belvire
otb
Commits
27333824
Commit
27333824
authored
15 years ago
by
Jordi Inglada
Browse files
Options
Downloads
Patches
Plain Diff
ENH: accessors added
parent
01dbe252
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Code/GISFilters/otbPostGISCreateTableTransactor.h
+38
-13
38 additions, 13 deletions
Code/GISFilters/otbPostGISCreateTableTransactor.h
with
38 additions
and
13 deletions
Code/GISFilters/otbPostGISCreateTableTransactor.h
+
38
−
13
View file @
27333824
...
...
@@ -44,13 +44,14 @@ public:
typedef
pqxx
::
result
ResultType
;
PostGISCreateTableTransactor
(){};
/* :
pqxx::transactor<pqxx::nontransaction>("CreateTable") {}*/
typedef
pqxx
::
transactor
<
pqxx
::
nontransaction
>
Superclass
;
PostGISCreateTableTransactor
()
:
Superclass
(
"CreateTable"
)
{}
void
operator
()(
argument_type
&
T
)
{
/*
std::stringstream createCommand;
std
::
stringstream
createCommand
;
createCommand
<<
"CREATE TABLE "
<<
m_TableName
<<
" (id serial PRIMARY KEY,genre text);"
;
...
...
@@ -63,7 +64,7 @@ public:
"', 'geom', "
<<
m_SRID
<<
", 'GEOMETRY',"
<<
m_Dimension
<<
" );"
;
m_Result
=
T
.
exec
(
addGeometryCommand
.
str
());
*/
}
...
...
@@ -73,18 +74,42 @@ public:
}
/* itkGetMacro(TableName, std::string);
itkSetMacro(TableName, std::string);
std
::
string
GetTableName
()
const
{
return
m_TableName
;
}
itkGetMacro(SRID, int);
itkSetMacro(SRID, int);
void
SetTableName
(
const
std
::
string
&
aName
)
{
m_TableName
=
aName
;
}
itkGetMacro(Dimension, unsigned short);
itkSetMacro(Dimension, unsigned short);
int
GetSRID
()
const
{
return
m_SRID
;
}
itkGetMacro(Result, ResultType);
*/
void
SetSRID
(
int
aSRID
)
{
m_SRID
=
aSRID
;
}
unsigned
short
GetDimension
()
const
{
return
m_Dimension
;
}
void
SetDimension
(
unsigned
short
aDim
)
{
m_Dimension
=
aDim
;
}
ResultType
GetResult
()
const
{
return
m_Result
;
}
protected
:
ResultType
m_Result
;
std
::
string
m_TableName
;
...
...
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