OpendTect-6_4  6.4
googlexmlwriter.h
Go to the documentation of this file.
1 #ifndef googlexmlwriter_h
2 #define googlexmlwriter_h
3 /*+
4  * (C) dGB Beheer B.V.; (LICENSE) http://opendtect.org/OpendTect_license.txt
5  * AUTHOR : Bert
6  * DATE : Nov 2007
7  * ID : $Id$
8 -*/
9 
10 #include "generalmod.h"
11 #include "uistring.h"
12 
13 class LatLong;
14 class SurveyInfo;
15 class od_ostream;
16 
17 
18 namespace ODGoogle
19 {
20 class XMLItem;
21 
27 { mODTextTranslationClass(XMLWriter);
28 public:
29 
30  XMLWriter(const char* elemname,const char* fnm=0,
31  const char* survnm=0);
32  ~XMLWriter() { close(); }
33 
34  bool isOK() const;
35  uiString errMsg() const { return errmsg_; }
36 
37  void setElemName( const char* nm )
38  { elemnm_ = nm; }
39  void setSurveyName( const char* nm )
40  { survnm_ = nm; }
41 
42  bool open(const char* fnm);
43  void close();
44 
45  void start(const XMLItem&);
46  void finish(const XMLItem&);
47 
48  od_ostream& strm() { return *strm_; }
49  const od_ostream& strm() const { return *strm_; }
50 
51  void writeIconStyles(const char* iconnm,int xpixoffs,
52  const char* ins=0);
53  void writePlaceMark(const char* iconnm,const Coord&,
54  const char* nm);
55  void writePlaceMark(const char* iconnm,const LatLong&,
56  const char* nm,const char* desc=0);
57  void writeLine(const char* iconnm,const TypeSet<Coord>&,
58  const char* nm);
59 
60  void writePolyStyle(const char* stlnm,const Color&,int wdth);
61  void writePoly(const char* stlnm,const char* polynm,
62  const TypeSet<Coord>&,float hght,
63  const SurveyInfo* si=0);
64 
65 protected:
66 
71 
72 };
73 
74 
75 } // namespace ODGoogle
76 
77 #endif
#define mExpClass(module)
Definition: commondefs.h:160
OD class for stream write common access to the user log file, or std::cout in batch progs...
Definition: od_ostream.h:26
od_ostream * strm_
Definition: googlexmlwriter.h:69
BufferString elemnm_
Definition: googlexmlwriter.h:67
#define mODTextTranslationClass(clss)
Definition: uistring.h:38
Definition: googlexmlwriter.h:18
Definition: uistring.h:89
Holds survey general information.
Definition: survinfo.h:45
A cartesian coordinate in 2D space.
Definition: coord.h:25
Geographical coordinates in Decimal Degrees but with conv to deg, min, sec.
Definition: latlong.h:27
~XMLWriter()
Definition: googlexmlwriter.h:32
void setSurveyName(const char *nm)
Definition: googlexmlwriter.h:39
BufferString survnm_
Definition: googlexmlwriter.h:68
OD::String with its own variable length buffer. The buffer has a guaranteed minimum size...
Definition: bufstring.h:40
BufferString errmsg_
Definition: horizontracker.h:119
uiString errmsg_
Definition: googlexmlwriter.h:70
const od_ostream & strm() const
Definition: googlexmlwriter.h:49
void setElemName(const char *nm)
Definition: googlexmlwriter.h:37
Color is an RGB color object, with a transparancy. The storage is in a 4-byte integer, similar to Qt.
Definition: color.h:26
od_ostream & strm()
Definition: googlexmlwriter.h:48
uiString errMsg() const
Definition: googlexmlwriter.h:35
XML Writer.
Definition: googlexmlwriter.h:26

Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B. V. 2019