mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-14 15:05:35 +02:00
Add setup() const accessor
This commit is contained in:
@@ -32,8 +32,9 @@ public:
|
|||||||
virtual std::string toString() = 0;
|
virtual std::string toString() = 0;
|
||||||
|
|
||||||
void addSetup(const std::vector<std::string>& setup);
|
void addSetup(const std::vector<std::string>& setup);
|
||||||
|
const std::vector<std::string>& setup() const;
|
||||||
|
|
||||||
protected:
|
private:
|
||||||
std::vector<std::string> _setup;
|
std::vector<std::string> _setup;
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -68,6 +69,13 @@ inline void Test::addSetup(const std::vector<std::string>& setup)
|
|||||||
_setup = setup;
|
_setup = setup;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
inline const std::vector<std::string>& Test::setup() const
|
||||||
|
{
|
||||||
|
return _setup;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
} // namespace CppUnit
|
} // namespace CppUnit
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user