tdaq-develop-2025-02-12
ots::CgiDataUtilities Class Reference

Static Public Member Functions

static std::string getOrPostData (cgicc::Cgicc &cgi, const std::string &needle)
 
static std::string postData (cgicc::Cgicc &cgi, const std::string &needle)
 
static std::string getData (cgicc::Cgicc &cgi, const std::string &needle)
 
static int getOrPostDataAsInt (cgicc::Cgicc &cgi, const std::string &needle)
 
static int postDataAsInt (cgicc::Cgicc &cgi, const std::string &needle)
 
static int getDataAsInt (cgicc::Cgicc &cgi, const std::string &needle)
 

Detailed Description

Definition at line 12 of file CgiDataUtilities.h.

Member Function Documentation

◆ getData()

std::string CgiDataUtilities::getData ( cgicc::Cgicc &  cgi,
const std::string &  needle 
)
static

getData returns "" if not found get query data format is expected to be: needle1=value1&needle2=value2...

Definition at line 53 of file CgiDataUtilities.cc.

◆ getOrPostData()

std::string CgiDataUtilities::getOrPostData ( cgicc::Cgicc &  cgi,
const std::string &  needle 
)
static

getOrPostData return std::string value of needle from get or post std::string post format is expected to be: needle1=value1&needle2=value2... if not found, return ""

Definition at line 11 of file CgiDataUtilities.cc.

◆ postData()

std::string CgiDataUtilities::postData ( cgicc::Cgicc &  cgi,
const std::string &  needle 
)
static

getPostData return std::string value of needle from post std::string post format is expected to be: needle1=value1&needle2=value2... if not found, return ""

Definition at line 25 of file CgiDataUtilities.cc.


The documentation for this class was generated from the following files: