blob: 3506cf29271971bd568f54c629e8d764ec9f60c4 (
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
// **********************************************************************
//
// Copyright (c) 2003-2005 ZeroC, Inc. All rights reserved.
//
// This copy of Ice is licensed to you under the terms described in the
// ICE_LICENSE file included in this distribution.
//
// **********************************************************************
#include <Ice/Ice.h>
#include <IcePatch2/Util.h>
#include <IceGrid/Util.h>
#include <IceGrid/Admin.h>
#include <fstream>
using namespace std;
using namespace IceGrid;
string
IceGrid::toString(const vector<string>& v, const string& sep)
{
ostringstream os;
Ice::StringSeq::const_iterator p = v.begin();
while(p != v.end())
{
os << *p;
++p;
if(p != v.end())
{
os << sep;
}
}
return os.str();
}
string
IceGrid::getProperty(const PropertyDescriptorSeq& properties, const string& name, const string& def)
{
for(PropertyDescriptorSeq::const_iterator p = properties.begin(); p != properties.end(); ++p)
{
if(p->name == name)
{
return p->value;
}
}
return def;
}
|