OpendTect-6_4  6.4
odiconfile.h
Go to the documentation of this file.
1 #ifndef odiconfile_h
2 #define odiconfile_h
3 
4 /*+
5 ________________________________________________________________________
6 
7  (C) dGB Beheer B.V.; (LICENSE) http://opendtect.org/OpendTect_license.txt
8  Author: Bert
9  Date: Sep 2014
10  RCS: $Id$
11 ________________________________________________________________________
12 
13 -*/
14 
15 #include "generalmod.h"
16 #include "namedobj.h"
17 #include "bufstringset.h"
18 #include "oduicommon.h"
19 
20 
59 namespace OD
60 {
61 
62 mExpClass(General) IconFile : public NamedObject
63 {
64 public:
65 
67 
68  IconFile(const char* identifier=0);
69  IconFile(StdActionType);
70 
71  void set(const char* identifier);
72  void set( StdActionType t ) { set( getIdentifier(t) ); }
73 
74  static const char* getIdentifier(StdActionType);
75  static bool isPresent(const char* identifier);
76 
77  bool haveData() const { return !nms_.isEmpty(); }
78  const BufferStringSet& fileNames() const { return nms_; }
79 
80  static const char* notFoundIconFileName();
81 
82 protected:
83 
88 
89  bool findIcons(const char*,bool shortname);
90 
91 private:
92 
93  void init(const char*);
94 
95 };
96 
97 } // namespace OD
98 
99 #endif
#define mExpClass(module)
Definition: commondefs.h:160
const BufferStringSet & fileNames() const
Definition: odiconfile.h:78
OD::StdActionType StdActionType
Definition: odiconfile.h:66
Definition: odiconfile.h:62
BufferString deficdirnm_
Definition: odiconfile.h:86
bool init()
Set of BufferString objects.
Definition: bufstringset.h:28
BufferStringSet nms_
Definition: odiconfile.h:87
StdActionType
Definition: oduicommon.h:61
OD::String with its own variable length buffer. The buffer has a guaranteed minimum size...
Definition: bufstring.h:40
Object with a name.
Definition: namedobj.h:35
BufferString icdirnm_
Definition: odiconfile.h:85
OpendTect.
Definition: commontypes.h:29
bool haveData() const
Definition: odiconfile.h:77
bool trydeficons_
Definition: odiconfile.h:84

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