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 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398
|
/*
* 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(); \
}
#if 0
/* Use the code below as a template for the implementation class for this interface. */
/* Header file */
class _MYCLASS_ : public IRDMolecule
{
public:
NS_DECL_ISUPPORTS
NS_DECL_IRDMOLECULE
_MYCLASS_();
private:
~_MYCLASS_();
protected:
/* additional members */
};
/* Implementation file */
NS_IMPL_ISUPPORTS1(_MYCLASS_, IRDMolecule)
_MYCLASS_::_MYCLASS_()
{
/* member initializers and constructor code */
}
_MYCLASS_::~_MYCLASS_()
{
/* destructor code */
}
/* double GetMW (); */
NS_IMETHODIMP _MYCLASS_::GetMW(double *_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* string GetSmiles (); */
NS_IMETHODIMP _MYCLASS_::GetSmiles(char **_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* string GetMolBlock (); */
NS_IMETHODIMP _MYCLASS_::GetMolBlock(char **_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* unsigned long GetSmartsMatchCount (in string smarts); */
NS_IMETHODIMP _MYCLASS_::GetSmartsMatchCount(const char *smarts, PRUint32 *_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* double LogP (); */
NS_IMETHODIMP _MYCLASS_::LogP(double *_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* double MR (); */
NS_IMETHODIMP _MYCLASS_::MR(double *_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void Generate3DCoords (); */
NS_IMETHODIMP _MYCLASS_::Generate3DCoords()
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* End of implementation class template. */
#endif
/* 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); \
}
#if 0
/* Use the code below as a template for the implementation class for this interface. */
/* Header file */
class _MYCLASS_ : public IRDMolSupplier
{
public:
NS_DECL_ISUPPORTS
NS_DECL_IRDMOLSUPPLIER
_MYCLASS_();
private:
~_MYCLASS_();
protected:
/* additional members */
};
/* Implementation file */
NS_IMPL_ISUPPORTS1(_MYCLASS_, IRDMolSupplier)
_MYCLASS_::_MYCLASS_()
{
/* member initializers and constructor code */
}
_MYCLASS_::~_MYCLASS_()
{
/* destructor code */
}
/* boolean atEnd (); */
NS_IMETHODIMP _MYCLASS_::AtEnd(PRBool *_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* IRDMolecule next (); */
NS_IMETHODIMP _MYCLASS_::Next(IRDMolecule **_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* End of implementation class template. */
#endif
/* 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); \
}
#if 0
/* Use the code below as a template for the implementation class for this interface. */
/* Header file */
class _MYCLASS_ : public IRDKit
{
public:
NS_DECL_ISUPPORTS
NS_DECL_IRDKIT
_MYCLASS_();
private:
~_MYCLASS_();
protected:
/* additional members */
};
/* Implementation file */
NS_IMPL_ISUPPORTS1(_MYCLASS_, IRDKit)
_MYCLASS_::_MYCLASS_()
{
/* member initializers and constructor code */
}
_MYCLASS_::~_MYCLASS_()
{
/* destructor code */
}
/* unsigned long strlen (in string arg); */
NS_IMETHODIMP _MYCLASS_::Strlen(const char *arg, PRUint32 *_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* IRDMolecule MolFromSmiles (in string smiles); */
NS_IMETHODIMP _MYCLASS_::MolFromSmiles(const char *smiles, IRDMolecule **_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* IRDMolecule MolFromMolBlock (in string molBlock); */
NS_IMETHODIMP _MYCLASS_::MolFromMolBlock(const char *molBlock, IRDMolecule **_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* IRDMolSupplier SupplierFromSDFile (in string fileName); */
NS_IMETHODIMP _MYCLASS_::SupplierFromSDFile(const char *fileName, IRDMolSupplier **_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* End of implementation class template. */
#endif
#endif /* __gen_IRDKit_h__ */
|