updated PageCompiler

This commit is contained in:
Guenter Obiltschnig
2012-10-13 10:07:17 +00:00
parent 045c23a9f6
commit 8f00fdb78a
7 changed files with 196 additions and 48 deletions

View File

@@ -1,7 +1,7 @@
//
// Page.cpp
//
// $Id: //poco/1.4/PageCompiler/src/Page.cpp#1 $
// $Id: //poco/1.4/PageCompiler/src/Page.cpp#2 $
//
// Copyright (c) 2008, Applied Informatics Software Engineering GmbH.
// and Contributors.
@@ -32,6 +32,7 @@
#include "Page.h"
#include "Poco/String.h"
#include "Poco/NumberParser.h"
Page::Page()
@@ -55,3 +56,13 @@ bool Page::getBool(const std::string& property, bool deflt) const
}
else return deflt;
}
int Page::getInt(const std::string& property, int deflt) const
{
if (has(property))
{
return Poco::NumberParser::parse(get(property));
}
else return deflt;
}