biod.pnpi.spb.ru
/
alexxy
/
gromacs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Extract IOptionsContainer from Options
[alexxy/gromacs.git]
/
src
/
testutils
/
testoptions.h
diff --git
a/src/testutils/testoptions.h
b/src/testutils/testoptions.h
index bdc980504c0bc84c9c2023586d93994554192e2a..62dd76926f0ccd6d56543d092ae2cba0b2589884 100644
(file)
--- a/
src/testutils/testoptions.h
+++ b/
src/testutils/testoptions.h
@@
-50,7
+50,7
@@
namespace gmx
{
namespace gmx
{
-class
Options
;
+class
IOptionsContainer
;
namespace test
{
namespace test
{
@@
-72,7
+72,7
@@
class TestOptionsProvider
*
* \param options The options need to be added here.
*/
*
* \param options The options need to be added here.
*/
- virtual void initOptions(
Options
*options) = 0;
+ virtual void initOptions(
IOptionsContainer
*options) = 0;
protected:
virtual ~TestOptionsProvider() {}
protected:
virtual ~TestOptionsProvider() {}
@@
-106,7
+106,7
@@
void registerTestOptions(const char *name, TestOptionsProvider *provider);
*
* \ingroup module_testutils
*/
*
* \ingroup module_testutils
*/
-void initTestOptions(
Options
*options);
+void initTestOptions(
IOptionsContainer
*options);
// Uncrustify screws up the indentation for the example otherwise.
/* *INDENT-OFF* */
// Uncrustify screws up the indentation for the example otherwise.
/* *INDENT-OFF* */
@@
-127,7
+127,7
@@
void initTestOptions(Options *options);
* Typical usage:
* \code
#include "gromacs/options/basicoptions.h"
* Typical usage:
* \code
#include "gromacs/options/basicoptions.h"
- #include "gromacs/options/
options
.h"
+ #include "gromacs/options/
ioptionscontainer
.h"
#include "testutils/testoptions.h"
#include "testutils/testoptions.h"
@@
-170,12
+170,12
@@
void initTestOptions(Options *options);
{ \
::gmx::test::registerTestOptions(#name, this); \
} \
{ \
::gmx::test::registerTestOptions(#name, this); \
} \
- virtual void initOptions(::gmx::
Options
*options); \
+ virtual void initOptions(::gmx::
IOptionsContainer
*options); \
}; \
\
static name s_ ## name ## Instance; \
\
}; \
\
static name s_ ## name ## Instance; \
\
- void name::initOptions(::gmx::
Options
*options)
+ void name::initOptions(::gmx::
IOptionsContainer
*options)
} // namespace test
} // namespace gmx
} // namespace test
} // namespace gmx