blob: 90eca8e8c444af168f82642b8c3e9745b13365bc (
plain)
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
|
#include "iceboxOptionsSource.h"
IceBoxOptionsSource::IceBoxOptionsSource(Ice::CommunicatorPtr i) :
ic(i),
startTime(boost::posix_time::microsec_clock::universal_time())
{
}
boost::posix_time::ptime
IceBoxOptionsSource::modifiedTime() const
{
return startTime;
}
void
IceBoxOptionsSource::loadInto(const ConfigConsumer & consume, const Options::CurrentPlatform & currentPlatform) const
{
if (!ic) return;
auto props = ic->getProperties();
if (!props) return;
for (auto & prop : props->getPropertiesForPrefix("project2")) {
consume(prop.first.substr(9), "", prop.second, currentPlatform);
}
}
|