gmx::Selection sel;
using gmx::SelectionOption;
ASSERT_NO_THROW(options_.addOption(
- SelectionOption("sel").store(&sel).onlyStatic()));
+ SelectionOption("sel").store(&sel).onlyStatic()));
setManager();
gmx::OptionsAssigner assigner(&options_);
gmx::Selection sel[2];
using gmx::SelectionOption;
ASSERT_NO_THROW(options_.addOption(
- SelectionOption("sel").store(sel).valueCount(2)));
+ SelectionOption("sel").store(sel).valueCount(2)));
setManager();
gmx::OptionsAssigner assigner(&options_);
TEST_F(SelectionOptionTest, HandlesAdjuster)
{
- gmx::SelectionList sel;
+ gmx::SelectionList sel;
using gmx::SelectionOption;
gmx::SelectionOptionInfo *info = options_.addOption(
- SelectionOption("sel").storeVector(&sel).multiValue());
+ SelectionOption("sel").storeVector(&sel).multiValue());
setManager();
gmx::OptionsAssigner assigner(&options_);
TEST_F(SelectionOptionTest, HandlesDynamicWhenStaticRequiredWithAdjuster)
{
- gmx::Selection sel;
+ gmx::Selection sel;
using gmx::SelectionOption;
gmx::SelectionOptionInfo *info = options_.addOption(
- SelectionOption("sel").store(&sel));
+ SelectionOption("sel").store(&sel));
setManager();
gmx::OptionsAssigner assigner(&options_);
TEST_F(SelectionOptionTest, HandlesTooManySelectionsWithAdjuster)
{
- gmx::SelectionList sel;
+ gmx::SelectionList sel;
using gmx::SelectionOption;
gmx::SelectionOptionInfo *info = options_.addOption(
- SelectionOption("sel").storeVector(&sel).multiValue());
+ SelectionOption("sel").storeVector(&sel).multiValue());
setManager();
gmx::OptionsAssigner assigner(&options_);
TEST_F(SelectionOptionTest, HandlesTooFewSelectionsWithAdjuster)
{
- gmx::SelectionList sel;
+ gmx::SelectionList sel;
using gmx::SelectionOption;
gmx::SelectionOptionInfo *info = options_.addOption(
- SelectionOption("sel").storeVector(&sel).multiValue());
+ SelectionOption("sel").storeVector(&sel).multiValue());
setManager();
gmx::OptionsAssigner assigner(&options_);
gmx::Selection sel;
using gmx::SelectionOption;
ASSERT_NO_THROW(options_.addOption(
- SelectionOption("sel").store(&sel).required()));
+ SelectionOption("sel").store(&sel).required()));
setManager();
gmx::OptionsAssigner assigner(&options_);
gmx::Selection sel[2];
using gmx::SelectionOption;
ASSERT_NO_THROW(options_.addOption(
- SelectionOption("sel").store(sel).required()
- .valueCount(2)));
+ SelectionOption("sel").store(sel).required()
+ .valueCount(2)));
setManager();
gmx::OptionsAssigner assigner(&options_);
TEST_F(SelectionOptionTest, HandlesDelayedSelectionWithAdjuster)
{
- gmx::SelectionList sel;
+ gmx::SelectionList sel;
using gmx::SelectionOption;
gmx::SelectionOptionInfo *info = options_.addOption(
- SelectionOption("sel").storeVector(&sel).valueCount(3));
+ SelectionOption("sel").storeVector(&sel).valueCount(3));
setManager();
gmx::OptionsAssigner assigner(&options_);
gmx::SelectionList reqsel;
using gmx::SelectionOption;
ASSERT_NO_THROW(options_.addOption(
- SelectionOption("sel").storeVector(&sel).multiValue()));
+ SelectionOption("sel").storeVector(&sel).multiValue()));
ASSERT_NO_THROW(options_.addOption(
- SelectionOption("reqsel").storeVector(&reqsel)
- .multiValue().required()));
+ SelectionOption("reqsel").storeVector(&reqsel)
+ .multiValue().required()));
setManager();
gmx::OptionsAssigner assigner(&options_);
gmx::SelectionList sel2;
using gmx::SelectionOption;
ASSERT_NO_THROW(options_.addOption(
- SelectionOption("sel1").storeVector(&sel1).multiValue()));
+ SelectionOption("sel1").storeVector(&sel1).multiValue()));
ASSERT_NO_THROW(options_.addOption(
- SelectionOption("sel2").storeVector(&sel2).multiValue()));
+ SelectionOption("sel2").storeVector(&sel2).multiValue()));
setManager();
gmx::OptionsAssigner assigner(&options_);
- std::string value(TestFileManager::getInputFilePath("selfile.dat"));
+ std::string value(TestFileManager::getInputFilePath("selfile.dat"));
EXPECT_NO_THROW(assigner.start());
ASSERT_NO_THROW(assigner.startOption("sel1"));
EXPECT_NO_THROW(assigner.finishOption());
gmx::SelectionList sel2;
using gmx::SelectionOption;
ASSERT_NO_THROW(options_.addOption(
- SelectionOption("sel1").storeVector(&sel1)));
+ SelectionOption("sel1").storeVector(&sel1)));
ASSERT_NO_THROW(options_.addOption(
- SelectionOption("sel2").storeVector(&sel2)));
+ SelectionOption("sel2").storeVector(&sel2)));
setManager();
gmx::OptionsAssigner assigner(&options_);
- std::string value(TestFileManager::getInputFilePath("selfile.dat"));
+ std::string value(TestFileManager::getInputFilePath("selfile.dat"));
EXPECT_NO_THROW(assigner.start());
ASSERT_NO_THROW(assigner.startOption("sel1"));
EXPECT_NO_THROW(assigner.finishOption());
gmx::SelectionList optsel;
using gmx::SelectionOption;
ASSERT_NO_THROW(options_.addOption(
- SelectionOption("sel").storeVector(&sel)
- .multiValue().required()));
+ SelectionOption("sel").storeVector(&sel)
+ .multiValue().required()));
ASSERT_NO_THROW(options_.addOption(
- SelectionOption("optsel").storeVector(&optsel)
- .multiValue()));
+ SelectionOption("optsel").storeVector(&optsel)
+ .multiValue()));
setManager();
gmx::OptionsAssigner assigner(&options_);
gmx::SelectionList sel2;
using gmx::SelectionOption;
ASSERT_NO_THROW(options_.addOption(
- SelectionOption("sel1").storeVector(&sel1)
- .multiValue().required()));
+ SelectionOption("sel1").storeVector(&sel1)
+ .multiValue().required()));
ASSERT_NO_THROW(options_.addOption(
- SelectionOption("sel2").storeVector(&sel2)
- .multiValue().required()));
+ SelectionOption("sel2").storeVector(&sel2)
+ .multiValue().required()));
setManager();
gmx::OptionsAssigner assigner(&options_);
gmx::SelectionList sel2;
using gmx::SelectionOption;
ASSERT_NO_THROW(options_.addOption(
- SelectionOption("sel1").storeVector(&sel1).required()));
+ SelectionOption("sel1").storeVector(&sel1).required()));
ASSERT_NO_THROW(options_.addOption(
- SelectionOption("sel2").storeVector(&sel2).required()));
+ SelectionOption("sel2").storeVector(&sel2).required()));
setManager();
gmx::OptionsAssigner assigner(&options_);
- std::string value(TestFileManager::getInputFilePath("selfile.dat"));
+ std::string value(TestFileManager::getInputFilePath("selfile.dat"));
EXPECT_NO_THROW(assigner.start());
ASSERT_NO_THROW(assigner.startOption("sf"));
EXPECT_NO_THROW(assigner.appendValue(value));
gmx::SelectionList sel;
using gmx::SelectionOption;
ASSERT_NO_THROW(options_.addOption(
- SelectionOption("sel").storeVector(&sel).multiValue()));
+ SelectionOption("sel").storeVector(&sel).multiValue()));
setManager();
gmx::OptionsAssigner assigner(&options_);
gmx::SelectionList sel;
using gmx::SelectionOption;
ASSERT_NO_THROW(options_.addOption(
- SelectionOption("sel").storeVector(&sel).multiValue()));
+ SelectionOption("sel").storeVector(&sel).multiValue()));
setManager();
gmx::OptionsAssigner assigner(&options_);
gmx::SelectionList sel;
using gmx::SelectionOption;
ASSERT_NO_THROW(options_.addOption(
- SelectionOption("sel").storeVector(&sel).multiValue()));
+ SelectionOption("sel").storeVector(&sel).multiValue()));
setManager();
gmx::OptionsAssigner assigner(&options_);