19#ifndef _TM_ATTRIBUTION_DATA_H_
20#define _TM_ATTRIBUTION_DATA_H_
30#include "../gui/attribution_obj_type.h"
31#include "tmattributionbasicarray.h"
45 void InitMemberValues();
48 wxArrayLong* m_SelIDs;
68 bool _GetInfoBasic(
long oid, wxArrayLong& objid, wxArrayString& objcode, wxArrayString& objname,
int layertype);
76 virtual void Create(wxArrayLong* selected,
DataBaseTM* database);
81 virtual void SetDataBaseTable(
const wxString& tablename) {
82 m_TableName = tablename;
94 virtual bool SetAttributesAdvanced(
long objectid, PrjMemLayersArray* layers,
const wxArrayString& values);
104 virtual bool GetInfoBasic(
long oid, wxArrayLong& objid, wxArrayString& objcode, wxArrayString& objname) {
126 virtual bool GetAttributionLayersID(
const long& geomid, tmLayerValueArray& layersid) {
130 virtual bool GetAttributionLayersIDFull(
const long& geomid, tmLayerValueArray& layersid) {
Definition attribution_obj_type.h:71
Definition database_tm.h:80
Definition prjdefmemmanage.h:54
Storing layers properties in memory.
Definition projectdefmemory.h:246
Definition tmattributionbasicarray.h:30
Class for attributing data.
Definition tmattributiondata.h:43
virtual bool SetAttributeBasicValues(wxArrayLong *values)
Set Basic attribution.
Definition tmattributiondata.cpp:178
void PrepareGetInfoStatement(wxString &statement, const wxString &tablename)
Create MySQL statement for getting info.
Definition tmattributiondata.cpp:140
virtual bool IsValid()
Verify validity of member objects.
Definition tmattributiondata.cpp:70
virtual bool GetInfoBasicArray(tmAttributionBasicArray &values)
Get basic attributions for selected objets.
Definition tmattributiondata.cpp:410
void PrepareCleaningStatement(wxString &statement, const wxString &tablename)
Create MySQL statement for attribution.
Definition tmattributiondata.cpp:124
void PrepareGetInfoMultipleStatement(wxString &statement, const wxString &tablename)
Create MySQL statement for getting info.
Definition tmattributiondata.cpp:155
virtual bool CopyAttributesBasic(const long ©from)
Copy attribution between objects.
Definition tmattributiondata.cpp:351
static bool IsAttributionSimilar(const tmAttributionBasicArray &values)
Check array for similar attribution.
Definition tmattributiondata.cpp:465
bool GetBasicNameFromID(const tmAttributionBasic &myAttribObj, wxArrayString &txtvalues)
Get Basic attribution string from database.
Definition tmattributiondata.cpp:496
virtual bool CleanAttributesAdvanced(long objectid, PrjDefMemManage *prjdef, PRJDEF_LAYERS_TYPE layertype)
Clean advanced attribution.
Definition tmattributiondata.cpp:285
bool PrepareGetAttributionLayersID(const long &geomid, tmLayerValueArray &layersid, const wxString &tablename, int layertype)
Get Layer attributed for selected geometry.
Definition tmattributiondata.cpp:572
virtual bool GetAttributesAdvanced(long objectid, PrjMemLayersArray *layers, wxArrayString &values)
Get advanced attribution in all layers for an object ID.
Definition tmattributiondata.cpp:326
virtual bool GetInfoBasicValues(const long &selected, wxArrayLong &values)
Get basic attribution values for passed ID.
Definition tmattributiondata.cpp:377
tmAttributionData()
Default constructor.
Definition tmattributiondata.cpp:30
void PrepareAttributionStatement(wxString &statement, const wxString &tablename, wxArrayLong *checkedVal)
Create MySQL statement for attribution.
Definition tmattributiondata.cpp:94
bool GetAdvancedAttribution(ProjectDefMemoryLayers *layer, wxArrayString &values, wxArrayString &codes, long selected)
Get advanced attribution for a layer.
Definition tmattributiondata.cpp:660
virtual bool SetAttributesAdvanced(long objectid, PrjMemLayersArray *layers, const wxArrayString &values)
Set advanced attribution.
Definition tmattributiondata.cpp:203
bool GetConcatenedBasicName(const tmAttributionBasicArray &myAttrib, wxArrayString &concatenedattrib)
Get Concatened basic attribution values for object.
Definition tmattributiondata.cpp:531
~tmAttributionData()
Destructor.
Definition tmattributiondata.cpp:39