mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-28 19:51:58 +01:00
updated PageCompiler
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user