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

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