UNIVERS  15.3
UNIVERS base processing software API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
zqb_name.hpp
1 /* zqb_name.hpp */
2 /* $Id: zqb_name.hpp 20080 2009-12-15 15:57:52Z vlad $ */
3 #ifndef __zqb_name_hpp
4 #define __zqb_name_hpp
5 
6 #include <string.h>
7 
8 
15 class ZqbName
16 {
17 public:
18 
21  ZqbName (const char* szRoot,
22  const char* szCustomName = NULL);
23 
25  ZqbName (const ZqbName& name);
26 
28  virtual ~ZqbName ();
29 
31  ZqbName& operator= (const ZqbName& name);
32 
34  virtual const char* getName () const
35  {
36  if(NULL != m_szName)
37  return m_szName;
38  return getType();
39  }
40 
42  virtual const char* getType () const
43  {
44  return m_szRoot;
45  }
46 
50  bool hasName (const char* szString) const;
51 
52 protected:
53 
55  char *m_szName;
56 
58  char *m_szRoot;
59 
60 };
61 
62 
63 #endif /* zqb_name.hpp */
Definition: zqb_name.hpp:15
virtual const char * getName() const
Definition: zqb_name.hpp:34
bool hasName(const char *szString) const
char * m_szName
Definition: zqb_name.hpp:55
virtual const char * getType() const
Definition: zqb_name.hpp:42
char * m_szRoot
Definition: zqb_name.hpp:58
ZqbName & operator=(const ZqbName &name)
ZqbName(const char *szRoot, const char *szCustomName=NULL)
virtual ~ZqbName()