summaryrefslogtreecommitdiff
path: root/project2/cgi
diff options
context:
space:
mode:
authorrandomdan <randomdan@localhost>2013-03-29 21:37:22 +0000
committerrandomdan <randomdan@localhost>2013-03-29 21:37:22 +0000
commit3f47498cc4a4e394108306119bb9a78007bd79ba (patch)
tree3c4c7fceb294b5cd97b9a3324d137d43d163b9ac /project2/cgi
parentMore aggregates (diff)
downloadproject2-3f47498cc4a4e394108306119bb9a78007bd79ba.tar.bz2
project2-3f47498cc4a4e394108306119bb9a78007bd79ba.tar.xz
project2-3f47498cc4a4e394108306119bb9a78007bd79ba.zip
Split variable and variabletype code into separate files
Use variabletype in populating options data Add code for guessing the type of some input data
Diffstat (limited to 'project2/cgi')
-rw-r--r--project2/cgi/cgiEnvironment.cpp2
-rw-r--r--project2/cgi/cgiEnvironment.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/project2/cgi/cgiEnvironment.cpp b/project2/cgi/cgiEnvironment.cpp
index 6462f5c..048f7d7 100644
--- a/project2/cgi/cgiEnvironment.cpp
+++ b/project2/cgi/cgiEnvironment.cpp
@@ -193,7 +193,7 @@ HostnamePlatformIdentifier::paramRequired() const
}
void
-HostnamePlatformIdentifier::consume(const Glib::ustring & p, const Glib::ustring & r) const
+HostnamePlatformIdentifier::consume(const Glib::ustring & p, const VariableType & r) const
{
if (!platform && Glib::Regex::create(r, Glib::REGEX_CASELESS | Glib::REGEX_DOTALL)->match(Environment::getCurrent()->getServerName())) {
platform = new Glib::ustring(p);
diff --git a/project2/cgi/cgiEnvironment.h b/project2/cgi/cgiEnvironment.h
index 176ca8d..c09f5a9 100644
--- a/project2/cgi/cgiEnvironment.h
+++ b/project2/cgi/cgiEnvironment.h
@@ -21,7 +21,7 @@ class HostnamePlatformIdentifier : public Options::Target {
virtual ~HostnamePlatformIdentifier();
void reset() const;
bool paramRequired() const;
- void consume(const Glib::ustring &, const Glib::ustring &) const;
+ void consume(const Glib::ustring &, const VariableType &) const;
const Glib::ustring & derivedPlatform() const;
private:
mutable Glib::ustring * platform;