File: IRDKit.h

package info (click to toggle)
rdkit 202503.1-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 220,160 kB
  • sloc: cpp: 399,240; python: 77,453; ansic: 25,517; java: 8,173; javascript: 4,005; sql: 2,389; yacc: 1,565; lex: 1,263; cs: 1,081; makefile: 580; xml: 229; fortran: 183; sh: 105
file content (215 lines) | stat: -rw-r--r-- 10,393 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
/*
 * DO NOT EDIT.  THIS FILE IS GENERATED FROM IRDKit.idl
 */

#ifndef __gen_IRDKit_h__
#define __gen_IRDKit_h__

#ifndef __gen_nsISupports_h__
#include "nsISupports.h"
#endif

/* For IDL files that don't want to include root IDL files. */
#ifndef NS_NO_VTABLE
#define NS_NO_VTABLE
#endif

/* starting interface:    IRDMolecule */
#define IRDMOLECULE_IID_STR "2fd55049-0125-48be-88e6-270b1b83a8a8"

#define IRDMOLECULE_IID                              \
  {                                                  \
    0x2fd55049, 0x0125, 0x48be, {                    \
      0x88, 0xe6, 0x27, 0x0b, 0x1b, 0x83, 0xa8, 0xa8 \
    }                                                \
  }

class NS_NO_VTABLE IRDMolecule : public nsISupports {
 public:
  NS_DEFINE_STATIC_IID_ACCESSOR(IRDMOLECULE_IID)

  /* double GetMW (); */
  NS_IMETHOD GetMW(double *_retval) = 0;

  /* string GetSmiles (); */
  NS_IMETHOD GetSmiles(char **_retval) = 0;

  /* string GetMolBlock (); */
  NS_IMETHOD GetMolBlock(char **_retval) = 0;

  /* unsigned long GetSmartsMatchCount (in string smarts); */
  NS_IMETHOD GetSmartsMatchCount(const char *smarts, PRUint32 *_retval) = 0;

  /* double LogP (); */
  NS_IMETHOD LogP(double *_retval) = 0;

  /* double MR (); */
  NS_IMETHOD MR(double *_retval) = 0;

  /* void Generate3DCoords (); */
  NS_IMETHOD Generate3DCoords(void) = 0;
};

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_IRDMOLECULE                                              \
  NS_IMETHOD GetMW(double *_retval);                                     \
  NS_IMETHOD GetSmiles(char **_retval);                                  \
  NS_IMETHOD GetMolBlock(char **_retval);                                \
  NS_IMETHOD GetSmartsMatchCount(const char *smarts, PRUint32 *_retval); \
  NS_IMETHOD LogP(double *_retval);                                      \
  NS_IMETHOD MR(double *_retval);                                        \
  NS_IMETHOD Generate3DCoords(void);

/* Use this macro to declare functions that forward the behavior of this
 * interface to another object. */
#define NS_FORWARD_IRDMOLECULE(_to)                                           \
  NS_IMETHOD GetMW(double *_retval) { return _to GetMW(_retval); }            \
  NS_IMETHOD GetSmiles(char **_retval) { return _to GetSmiles(_retval); }     \
  NS_IMETHOD GetMolBlock(char **_retval) { return _to GetMolBlock(_retval); } \
  NS_IMETHOD GetSmartsMatchCount(const char *smarts, PRUint32 *_retval) {     \
    return _to GetSmartsMatchCount(smarts, _retval);                          \
  }                                                                           \
  NS_IMETHOD LogP(double *_retval) { return _to LogP(_retval); }              \
  NS_IMETHOD MR(double *_retval) { return _to MR(_retval); }                  \
  NS_IMETHOD Generate3DCoords(void) { return _to Generate3DCoords(); }

/* Use this macro to declare functions that forward the behavior of this
 * interface to another object in a safe way. */
#define NS_FORWARD_SAFE_IRDMOLECULE(_to)                                  \
  NS_IMETHOD GetMW(double *_retval) {                                     \
    return !_to ? NS_ERROR_NULL_POINTER : _to->GetMW(_retval);            \
  }                                                                       \
  NS_IMETHOD GetSmiles(char **_retval) {                                  \
    return !_to ? NS_ERROR_NULL_POINTER : _to->GetSmiles(_retval);        \
  }                                                                       \
  NS_IMETHOD GetMolBlock(char **_retval) {                                \
    return !_to ? NS_ERROR_NULL_POINTER : _to->GetMolBlock(_retval);      \
  }                                                                       \
  NS_IMETHOD GetSmartsMatchCount(const char *smarts, PRUint32 *_retval) { \
    return !_to ? NS_ERROR_NULL_POINTER                                   \
                : _to->GetSmartsMatchCount(smarts, _retval);              \
  }                                                                       \
  NS_IMETHOD LogP(double *_retval) {                                      \
    return !_to ? NS_ERROR_NULL_POINTER : _to->LogP(_retval);             \
  }                                                                       \
  NS_IMETHOD MR(double *_retval) {                                        \
    return !_to ? NS_ERROR_NULL_POINTER : _to->MR(_retval);               \
  }                                                                       \
  NS_IMETHOD Generate3DCoords(void) {                                     \
    return !_to ? NS_ERROR_NULL_POINTER : _to->Generate3DCoords();        \
  }

/* starting interface:    IRDMolSupplier */
#define IRDMOLSUPPLIER_IID_STR "056a8da1-7820-41d7-b254-5ef7dd1693ce"

#define IRDMOLSUPPLIER_IID                           \
  {                                                  \
    0x056a8da1, 0x7820, 0x41d7, {                    \
      0xb2, 0x54, 0x5e, 0xf7, 0xdd, 0x16, 0x93, 0xce \
    }                                                \
  }

class NS_NO_VTABLE IRDMolSupplier : public nsISupports {
 public:
  NS_DEFINE_STATIC_IID_ACCESSOR(IRDMOLSUPPLIER_IID)

  /* boolean atEnd (); */
  NS_IMETHOD AtEnd(PRBool *_retval) = 0;

  /* IRDMolecule next (); */
  NS_IMETHOD Next(IRDMolecule **_retval) = 0;
};

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_IRDMOLSUPPLIER       \
  NS_IMETHOD AtEnd(PRBool *_retval); \
  NS_IMETHOD Next(IRDMolecule **_retval);

/* Use this macro to declare functions that forward the behavior of this
 * interface to another object. */
#define NS_FORWARD_IRDMOLSUPPLIER(_to)                             \
  NS_IMETHOD AtEnd(PRBool *_retval) { return _to AtEnd(_retval); } \
  NS_IMETHOD Next(IRDMolecule **_retval) { return _to Next(_retval); }

/* Use this macro to declare functions that forward the behavior of this
 * interface to another object in a safe way. */
#define NS_FORWARD_SAFE_IRDMOLSUPPLIER(_to)                    \
  NS_IMETHOD AtEnd(PRBool *_retval) {                          \
    return !_to ? NS_ERROR_NULL_POINTER : _to->AtEnd(_retval); \
  }                                                            \
  NS_IMETHOD Next(IRDMolecule **_retval) {                     \
    return !_to ? NS_ERROR_NULL_POINTER : _to->Next(_retval);  \
  }

/* starting interface:    IRDKit */
#define IRDKIT_IID_STR "bfb9acf3-9349-47ec-8984-f6f8e2f02f65"

#define IRDKIT_IID                                   \
  {                                                  \
    0xbfb9acf3, 0x9349, 0x47ec, {                    \
      0x89, 0x84, 0xf6, 0xf8, 0xe2, 0xf0, 0x2f, 0x65 \
    }                                                \
  }

class NS_NO_VTABLE IRDKit : public nsISupports {
 public:
  NS_DEFINE_STATIC_IID_ACCESSOR(IRDKIT_IID)

  /* unsigned long strlen (in string arg); */
  NS_IMETHOD Strlen(const char *arg, PRUint32 *_retval) = 0;

  /* IRDMolecule MolFromSmiles (in string smiles); */
  NS_IMETHOD MolFromSmiles(const char *smiles, IRDMolecule **_retval) = 0;

  /* IRDMolecule MolFromMolBlock (in string molBlock); */
  NS_IMETHOD MolFromMolBlock(const char *molBlock, IRDMolecule **_retval) = 0;

  /* IRDMolSupplier SupplierFromSDFile (in string fileName); */
  NS_IMETHOD SupplierFromSDFile(const char *fileName,
                                IRDMolSupplier **_retval) = 0;
};

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_IRDKIT                                                     \
  NS_IMETHOD Strlen(const char *arg, PRUint32 *_retval);                   \
  NS_IMETHOD MolFromSmiles(const char *smiles, IRDMolecule **_retval);     \
  NS_IMETHOD MolFromMolBlock(const char *molBlock, IRDMolecule **_retval); \
  NS_IMETHOD SupplierFromSDFile(const char *fileName, IRDMolSupplier **_retval);

/* Use this macro to declare functions that forward the behavior of this
 * interface to another object. */
#define NS_FORWARD_IRDKIT(_to)                                              \
  NS_IMETHOD Strlen(const char *arg, PRUint32 *_retval) {                   \
    return _to Strlen(arg, _retval);                                        \
  }                                                                         \
  NS_IMETHOD MolFromSmiles(const char *smiles, IRDMolecule **_retval) {     \
    return _to MolFromSmiles(smiles, _retval);                              \
  }                                                                         \
  NS_IMETHOD MolFromMolBlock(const char *molBlock, IRDMolecule **_retval) { \
    return _to MolFromMolBlock(molBlock, _retval);                          \
  }                                                                         \
  NS_IMETHOD SupplierFromSDFile(const char *fileName,                       \
                                IRDMolSupplier **_retval) {                 \
    return _to SupplierFromSDFile(fileName, _retval);                       \
  }

/* Use this macro to declare functions that forward the behavior of this
 * interface to another object in a safe way. */
#define NS_FORWARD_SAFE_IRDKIT(_to)                                            \
  NS_IMETHOD Strlen(const char *arg, PRUint32 *_retval) {                      \
    return !_to ? NS_ERROR_NULL_POINTER : _to->Strlen(arg, _retval);           \
  }                                                                            \
  NS_IMETHOD MolFromSmiles(const char *smiles, IRDMolecule **_retval) {        \
    return !_to ? NS_ERROR_NULL_POINTER : _to->MolFromSmiles(smiles, _retval); \
  }                                                                            \
  NS_IMETHOD MolFromMolBlock(const char *molBlock, IRDMolecule **_retval) {    \
    return !_to ? NS_ERROR_NULL_POINTER                                        \
                : _to->MolFromMolBlock(molBlock, _retval);                     \
  }                                                                            \
  NS_IMETHOD SupplierFromSDFile(const char *fileName,                          \
                                IRDMolSupplier **_retval) {                    \
    return !_to ? NS_ERROR_NULL_POINTER                                        \
                : _to->SupplierFromSDFile(fileName, _retval);                  \
  }

#endif /* __gen_IRDKit_h__ */