#include <KML_MultiGeometry.h>
|
| KML_MultiGeometry () |
|
| ~KML_MultiGeometry () |
|
void | Echo () |
|
void | DeepEcho () |
|
void | DeepEcho (const char *indent) |
|
void | Write (FILE *fid, const char *indent) |
|
void | Read (FILE *fid, char *kstr) |
|
void | WriteExp (FILE *fid, const char *nstr, int sgn, double cm, double sp) |
|
int | Id () |
|
int | ObjectEnum () |
|
Object * | copy () |
|
void | Marshall (char **pmarshalled_data, int *pmarshalled_data_size, int marshall_direction) |
|
| KML_Geometry () |
|
| ~KML_Geometry () |
|
| KML_Object () |
|
| ~KML_Object () |
|
int | Id () |
|
int | ObjectEnum () |
|
Object * | copy () |
|
void | Marshall (char **pmarshalled_data, int *pmarshalled_data_size, int marshall_direction) |
|
virtual void | AddAttrib (const char *name, const char *value) |
|
virtual void | WriteAttrib (FILE *fid, const char *indent) |
|
virtual void | AddCommnt (int ncom, char **pcom) |
|
virtual void | AddCommnt (char *value) |
|
virtual void | WriteCommnt (FILE *fid, const char *indent) |
|
virtual | ~Object () |
|
Definition at line 16 of file KML_MultiGeometry.h.
◆ KML_MultiGeometry()
KML_MultiGeometry::KML_MultiGeometry |
( |
| ) |
|
◆ ~KML_MultiGeometry()
KML_MultiGeometry::~KML_MultiGeometry |
( |
| ) |
|
◆ Echo()
void KML_MultiGeometry::Echo |
( |
void |
| ) |
|
|
virtual |
◆ DeepEcho() [1/2]
void KML_MultiGeometry::DeepEcho |
( |
void |
| ) |
|
|
virtual |
◆ DeepEcho() [2/2]
void KML_MultiGeometry::DeepEcho |
( |
const char * |
indent | ) |
|
|
virtual |
Reimplemented from KML_Geometry.
Definition at line 62 of file KML_MultiGeometry.cpp.
68 if(flag)
_printf0_(indent <<
"KML_Multigeometry:\n");
73 memcpy(indent2,indent,(strlen(indent)+1)*
sizeof(
char));
78 if(flag)
_printf0_(indent <<
" geometry: -------- begin [" << i <<
"] --------\n");
80 if(flag)
_printf0_(indent <<
" geometry: -------- end [" << i <<
"] --------\n");
83 if(flag)
_printf0_(indent <<
" geometry: [empty]\n");
◆ Write()
void KML_MultiGeometry::Write |
( |
FILE * |
fid, |
|
|
const char * |
indent |
|
) |
| |
|
virtual |
Reimplemented from KML_Geometry.
Definition at line 88 of file KML_MultiGeometry.cpp.
93 fprintf(filout,
"%s<MultiGeometry",indent);
95 fprintf(filout,
">\n");
102 memcpy(indent2,indent,(strlen(indent)+1)*
sizeof(
char));
109 fprintf(filout,
"%s</MultiGeometry>\n",indent);
◆ Read()
void KML_MultiGeometry::Read |
( |
FILE * |
fid, |
|
|
char * |
kstr |
|
) |
| |
|
virtual |
Reimplemented from KML_Geometry.
Definition at line 114 of file KML_MultiGeometry.cpp.
130 if (!strncmp(kstri,
"</MultiGeometry",15)) {
131 xDelete<char>(kstri);
134 else if (!strncmp(kstri,
"</",2))
135 {
_error_(
"KML_MultiGeometry::Read -- Unexpected closing tag " << kstri <<
".\n");}
136 else if (strncmp(kstri,
"<",1))
137 {
_error_(
"KML_MultiGeometry::Read -- Unexpected field \"" << kstri <<
"\".\n");}
139 else if (!strncmp(kstri,
"<Point", 6)) {
141 kobj->
Read(fid,kstri);
145 else if (!strncmp(kstri,
"<LineString",11)) {
147 kobj->
Read(fid,kstri);
151 else if (!strncmp(kstri,
"<LinearRing",11)) {
153 kobj->
Read(fid,kstri);
157 else if (!strncmp(kstri,
"<Polygon", 8)) {
159 kobj->
Read(fid,kstri);
163 else if (!strncmp(kstri,
"<MultiGeometry",14)) {
165 kobj->
Read(fid,kstri);
169 else if (!strncmp(kstri,
"<",1))
172 xDelete<char>(kstri);
177 for(ncom=ncom; ncom>0; ncom--)
178 xDelete<char>(pcom[ncom-1]);
179 xDelete<char*>(pcom);
◆ WriteExp()
void KML_MultiGeometry::WriteExp |
( |
FILE * |
fid, |
|
|
const char * |
nstr, |
|
|
int |
sgn, |
|
|
double |
cm, |
|
|
double |
sp |
|
) |
| |
|
virtual |
◆ Id()
int KML_MultiGeometry::Id |
( |
void |
| ) |
|
|
inlinevirtual |
◆ ObjectEnum()
int KML_MultiGeometry::ObjectEnum |
( |
void |
| ) |
|
|
inlinevirtual |
◆ copy()
Object* KML_MultiGeometry::copy |
( |
void |
| ) |
|
|
inlinevirtual |
◆ Marshall()
void KML_MultiGeometry::Marshall |
( |
char ** |
pmarshalled_data, |
|
|
int * |
pmarshalled_data_size, |
|
|
int |
marshall_direction |
|
) |
| |
|
inlinevirtual |
◆ geometry
DataSet* KML_MultiGeometry::geometry |
The documentation for this class was generated from the following files: