GTXclient C++ API  GTXserver-16.0.2
GTXVendorData.hpp
1 /*****************************************************************************
2 
3  Copyright (c)2007 Geovariances, Avon, France.
4 
5  In consideration of payment of the license fee, which is a part of
6  the price you paid for this product, Geovariances (GV) as licensor,
7  grants you, the licensee, a non-exclusive right to use this copy of a
8  GV software product.
9  GV reserves all rights not expressly granted to licensee. GV retains
10  titleship and ownership of software. This license is not a sale of
11  the original software or any copy. GV also retains titleship and
12  ownership of any modifications or derivations of this software. Any
13  modifications of this software must be clearly marked as such. This
14  copyright message must appear in its entirety in this software, or
15  any modifications or derivations thereof.
16 
17  Geovariances welcomes any comments, suggestions, bug reports, etc. At
18  the discretion of Geovariances, any customer supplied bug fixes,
19  enhancements, or utility codes will be distributed in future software
20  releases (the contributor will of course be credited).
21 
22  Geovariances
23  49bis, Avenue Franklin Roosevelt
24  77210 Avon, FRANCE
25 
26  Phone: +33-(0)-160.749.100
27  Fax: +33-(0)-164.228.728
28  e-mail: support@geovariances.fr
29 
30  All Rights Reserved
31 
32 *****************************************************************************/
33 
34 #ifndef __GTXVendorData_hpp__
35 #define __GTXVendorData_hpp__
36 
37 #define __USING_GTXSERVER_CPP_API__
38 
39 #ifdef DOXYGEN
40 #define SWIG_OR_DOXYGEN
41 #endif //DOXYGEN
42 
43 #ifdef SWIG
44 #define GLOBAL_CLASS
45 #define SWIG_OR_DOXYGEN
46 #else //SWIG
47 #include <GTXClient.h>
48 #endif //SWIG
49 
50 
51 #include <GTXStringArray.hpp>
52 #include <GTXIntArray.hpp>
53 #include <GTXDoubleArray.hpp>
54 
55 
59 class GLOBAL_CLASS GTXVendorData
60 {
61 public:
62  GTXVendorData(const char *identifier, int version);
63  GTXVendorData(const GTXVendorData &vdata);
64 #ifndef SWIG
65  GTXVendorData operator=(const GTXVendorData &vdata);
66 #endif
67  ~GTXVendorData();
68 
69 
70  void AddAttributeInt(const char *name, int value);
71  void AddAttributeDouble(const char *name, double value);
72  void AddAttributeString(const char *name, const char *value);
73  void AddAttributeIntArray(const char *name, const GTXIntArray &values);
74  void AddAttributeDoubleArray(const char *name, const GTXDoubleArray &values);
75  void AddAttributeStringArray(const char *name, const GTXStringArray &values);
76 
77  int GetVersion() const;
78  const char *GetIdentifier() const;
79 
80  int GetAttributeInt(const char *name) const;
81  double GetAttributeDouble(const char *name) const;
82  const char* GetAttributeString(const char *name) const;
83  GTXIntArray GetAttributeIntArray(const char *name) const;
84  GTXDoubleArray GetAttributeDoubleArray(const char *name) const;
85  GTXStringArray GetAttributeStringArray(const char *name) const;
86 
87 
88 
89 
90 
91 
92 private:
93  GTXVendorData_C _vdata;
94 
95  friend class GTXClient;
96 };
97 
98 #endif // __GTXVendorData_hpp__