23 namespace File {
class Path; }
24 namespace PosInfo {
class Survey2D; }
52 : IdxPair(lsid,lineid) {}
67 bool fromString(
const char*);
69 bool haveLSID()
const;
70 bool haveLineID()
const;
90 bool isEmpty()
const {
return lsnm_.isEmpty(); }
93 bool hasLineSet(
const char*)
const;
94 bool hasLine(
const char* lnm,
const char* lsnm=0)
const;
96 { getKeys(lsindex_,nms); }
100 void setCurLineSet(
const char*)
const;
105 void removeLine(
const char*);
106 void removeLineSet(
const char*);
107 void renameLineSet(
const char*,
const char*);
110 const char* getLineSet(IdxType lsid)
const;
111 const char* getLineName(IdxType lineid)
const;
112 IdxType getLineSetID(
const char*)
const;
113 IdxType getLineID(
const char*)
const;
114 bool hasLineSet(IdxType lsid)
const;
115 bool hasLine(IdxType lineid,IdxType lsid=-1)
const;
119 IdxType curLineSetID()
const;
120 void setCurLineSet(IdxType lsid)
const;
122 bool getGeometry(IdxType lid,
Line2DData&)
const;
126 void renameLine(
const char*oldnm,
const char*newnm);
127 void removeLine(IdxType lid);
128 void removeLineSet(IdxType lsid);
130 Line2DKey getLine2DKey(
const char* lsnm,
const char* linenm)
const;
131 const char* getLSFileNm(
const char* lsnm)
const;
132 const char* getLineFileNm(
const char* lsnm,
const char* lnm)
const;
134 bool readDistBetwTrcsStats(
const char* linemn,
float& max,
135 float& median)
const;
139 IdxType getNewID(
IOPar&);
140 void updateMaxID(IdxType,
IOPar&);
153 bool isIdxFileNew(
const char* lsnm=0)
const;
155 static void readIdxFile(
const char*,
IOPar&);
156 void writeIdxFile(
bool)
const;
161 int getLineSetIdx(IdxType lsid)
const;
162 int getLineIdx(IdxType lineid)
const;
#define mExpClass(module)
Definition: commondefs.h:157
Interface for several file and directory related services.
Definition: file.h:29
IdxType & lsID()
Definition: posinfo2dsurv.h:59
Inherit from this class to be able to send and/or receive CallBacks.
Definition: callback.h:182
A lock of a type that (hopefully) suits your needs. To use it, you need the Locker class...
Definition: threadlock.h:51
bool operator==(const ArrayNDInfo &a1, const ArrayNDInfo &a2)
Definition: arrayndinfo.h:51
Threads::Lock lock_
Definition: posinfo2dsurv.h:150
IdxType lsID() const
Definition: posinfo2dsurv.h:60
IOPar & lsindex_
Definition: posinfo2dsurv.h:147
#define mGlobal(module)
Definition: commondefs.h:160
bool operator==(const IdxPair &) const
Definition: idxpair.h:58
Survey2D & POS2DAdmin()
Your R/W access to the 2D line geometry database.
Definition: posinfo2dsurv.h:37
File pathname tools.
Definition: filepath.h:35
Position info for a 2D line.
Definition: posinfo2d.h:63
void getLineSets(BufferStringSet &nms) const
Definition: posinfo2dsurv.h:95
Line2DKey GeomID
Definition: posinfo2dsurv.h:77
Set of BufferString objects.
Definition: bufstringset.h:25
IdxType lineID() const
Definition: posinfo2dsurv.h:62
bool isEmpty() const
Definition: posinfo2dsurv.h:90
IOPar & lineindex_
Definition: posinfo2dsurv.h:148
Repository for 2D line geometries.
Definition: posinfo2dsurv.h:83
Generalized set of parameters of the keyword-value type.
Definition: iopar.h:53
const PosInfo::Survey2D & S2DPOS()
Your read-access to the 2D line geometry database.
Line2DKey::IdxType IdxType
Definition: posinfo2dsurv.h:87
BufferString curlstimestr_
Definition: posinfo2dsurv.h:149
bool operator!=(const ArrayNDInfo &a1, const ArrayNDInfo &a2)
Definition: arrayndinfo.h:60
File::Path & basefp_
Definition: posinfo2dsurv.h:144
Position info, often segmented.
Definition: posinfo.h:38
OD::String with its own variable length buffer. The buffer has a guaranteed minimum size...
Definition: bufstring.h:38
Line2DKey(int lsid=-1, int lineid=-1)
Definition: posinfo2dsurv.h:51
Index_Type IdxType
Definition: idxpair.h:32
Key holding ID for both lineset and line.
Definition: posinfo2dsurv.h:47
const char * curLineSet() const
Definition: posinfo2dsurv.h:99
IdxType & lineID()
Definition: posinfo2dsurv.h:61
File::Path & lsfp_
Definition: posinfo2dsurv.h:145
bool isUdf(const T &t)
Definition: undefval.h:241
Export_Basic const char * toString(ViewStyle)
A pair of numbers; base class for BinID et al.
Definition: idxpair.h:28
BufferString lsnm_
Definition: posinfo2dsurv.h:146