source: issm/trunk/src/c/objects/KML/KML_Geometry.cpp@ 12706

Last change on this file since 12706 was 12706, checked in by Mathieu Morlighem, 13 years ago

merged trunk-jpl and trunk for revision 12703

File size: 1.7 KB
Line 
1/*!\file KML_Geometry.cpp
2 * \brief: implementation of the kml_geometry abstract object
3 */
4
5/*Headers:*/
6/*{{{*/
7#ifdef HAVE_CONFIG_H
8 #include <config.h>
9#else
10#error "Cannot compile with HAVE_CONFIG_H symbol! run configure first!"
11#endif
12
13#include <stdio.h>
14#include <string.h>
15#include "../objects.h"
16#include "../../shared/shared.h"
17#include "../../Container/Container.h"
18#include "../../include/include.h"
19/*}}}*/
20
21/*Constructors/destructor/copy*/
22/*FUNCTION KML_Geometry::KML_Geometry(){{{*/
23KML_Geometry::KML_Geometry(){
24
25 ;
26
27}
28/*}}}*/
29/*FUNCTION KML_Geometry::~KML_Geometry(){{{*/
30KML_Geometry::~KML_Geometry(){
31
32 ;
33
34}
35/*}}}*/
36
37/*Other*/
38/*FUNCTION KML_Geometry::Echo {{{*/
39void KML_Geometry::Echo(){
40
41 this->KML_Object::Echo();
42
43 return;
44}
45/*}}}*/
46
47/*FUNCTION KML_Geometry::DeepEcho {{{*/
48void KML_Geometry::DeepEcho(){
49
50 char indent[81]="";
51
52 KML_Geometry::DeepEcho(indent);
53
54 return;
55}
56/*}}}*/
57
58/*FUNCTION KML_Geometry::DeepEcho {{{*/
59void KML_Geometry::DeepEcho(const char* indent){
60
61 this->KML_Object::DeepEcho(indent);
62
63 return;
64}
65/*}}}*/
66
67/*FUNCTION KML_Geometry::Write {{{*/
68void KML_Geometry::Write(FILE* filout,const char* indent){
69
70 KML_Object::Write(filout,indent);
71
72 return;
73}
74/*}}}*/
75
76/*FUNCTION KML_Geometry::Read {{{*/
77void KML_Geometry::Read(FILE* fid,char* kstr){
78
79/* process field within opening and closing tags */
80
81 if (!strncmp(kstr,"</Geometry",10))
82 return;
83 else if (!strncmp(kstr,"</",2))
84 {_error2_("KML_Geometry::Read -- Unexpected closing tag " << kstr << ".\n");}
85 else if (strncmp(kstr,"<",1))
86 {_error2_("KML_Geometry::Read -- Unexpected field \"" << kstr << "\".\n");}
87
88 else if (!strncmp(kstr,"<",1))
89 KML_Object::Read(fid,kstr);
90
91 return;
92}
93/*}}}*/
94
Note: See TracBrowser for help on using the repository browser.