1 #ifndef posinfo2dsurv_h 2 #define posinfo2dsurv_h 26 namespace PosInfo {
class Survey2D; }
54 : IdxPair(lsid,lineid) {}
69 bool fromString(
const char*);
71 bool haveLSID()
const;
72 bool haveLineID()
const;
92 bool isEmpty()
const {
return lsnm_.isEmpty(); }
95 bool hasLineSet(
const char*)
const;
96 bool hasLine(
const char* lnm,
const char* lsnm=0)
const;
98 { getKeys(lsindex_,nms); }
102 void setCurLineSet(
const char*)
const;
107 void removeLine(
const char*);
108 void removeLineSet(
const char*);
109 void renameLineSet(
const char*,
const char*);
112 const char* getLineSet(IdxType lsid)
const;
113 const char* getLineName(IdxType lineid)
const;
114 IdxType getLineSetID(
const char*)
const;
115 IdxType getLineID(
const char*)
const;
116 bool hasLineSet(IdxType lsid)
const;
117 bool hasLine(IdxType lineid,IdxType lsid=-1)
const;
121 IdxType curLineSetID()
const;
122 void setCurLineSet(IdxType lsid)
const;
124 bool getGeometry(IdxType lid,
Line2DData&)
const;
128 void renameLine(
const char*oldnm,
const char*newnm);
129 void removeLine(IdxType lid);
130 void removeLineSet(IdxType lsid);
132 Line2DKey getLine2DKey(
const char* lsnm,
const char* linenm)
const;
133 const char* getLSFileNm(
const char* lsnm)
const;
134 const char* getLineFileNm(
const char* lsnm,
const char* lnm)
const;
136 bool readDistBetwTrcsStats(
const char* linemn,
float& max,
137 float& median)
const;
141 IdxType getNewID(
IOPar&);
142 void updateMaxID(IdxType,
IOPar&);
155 bool isIdxFileNew(
const char* lsnm=0)
const;
157 static void readIdxFile(
const char*,
IOPar&);
158 void writeIdxFile(
bool)
const;
163 int getLineSetIdx(IdxType lsid)
const;
164 int getLineIdx(IdxType lineid)
const;
#define mExpClass(module)
Definition: commondefs.h:160
IdxType & lsID()
Definition: posinfo2dsurv.h:61
To be able to send and/or receive CallBacks, inherit from this class.
Definition: callback.h:272
A lock of a type that (hopefully) suits your needs. To use it, you need the Locker class...
Definition: threadlock.h:53
bool operator==(const ArrayNDInfo &a1, const ArrayNDInfo &a2)
Definition: arrayndinfo.h:53
Threads::Lock lock_
Definition: posinfo2dsurv.h:152
IdxType lsID() const
Definition: posinfo2dsurv.h:62
IOPar & lsindex_
Definition: posinfo2dsurv.h:149
FilePath & lsfp_
Definition: posinfo2dsurv.h:147
#define mGlobal(module)
Definition: commondefs.h:163
bool operator==(const IdxPair &) const
Definition: idxpair.h:60
Survey2D & POS2DAdmin()
Your R/W access to the 2D line geometry database.
Definition: posinfo2dsurv.h:39
Position info for a 2D line.
Definition: posinfo2d.h:65
void getLineSets(BufferStringSet &nms) const
Definition: posinfo2dsurv.h:97
Line2DKey GeomID
Definition: posinfo2dsurv.h:79
Set of BufferString objects.
Definition: bufstringset.h:28
IdxType lineID() const
Definition: posinfo2dsurv.h:64
bool isEmpty() const
Definition: posinfo2dsurv.h:92
IOPar & lineindex_
Definition: posinfo2dsurv.h:150
Repository for 2D line geometries.
Definition: posinfo2dsurv.h:85
Generalized set of parameters of the keyword-value type.
Definition: iopar.h:47
const PosInfo::Survey2D & S2DPOS()
Your read-access to the 2D line geometry database.
Line2DKey::IdxType IdxType
Definition: posinfo2dsurv.h:89
BufferString curlstimestr_
Definition: posinfo2dsurv.h:151
bool operator!=(const ArrayNDInfo &a1, const ArrayNDInfo &a2)
Definition: arrayndinfo.h:62
Position info, often segmented.
Definition: posinfo.h:40
File pathname tools.
Definition: filepath.h:34
OD::String with its own variable length buffer. The buffer has a guaranteed minimum size...
Definition: bufstring.h:40
Line2DKey(int lsid=-1, int lineid=-1)
Definition: posinfo2dsurv.h:53
Index_Type IdxType
Definition: idxpair.h:34
FilePath & basefp_
Definition: posinfo2dsurv.h:146
Key holding ID for both lineset and line.
Definition: posinfo2dsurv.h:49
const char * curLineSet() const
Definition: posinfo2dsurv.h:101
IdxType & lineID()
Definition: posinfo2dsurv.h:63
bool isUdf(const T &t)
Definition: undefval.h:243
Export_Basic const char * toString(ViewStyle)
A pair of numbers; base class for BinID et al.
Definition: idxpair.h:30
BufferString lsnm_
Definition: posinfo2dsurv.h:148