Google
Web alhem.net

Cgi::Select::Multi Class Reference

Inheritance diagram for Cgi::Select::Multi:

Inheritance graph
Collaboration diagram for Cgi::Select::Multi:

Collaboration graph
List of all members.

Public Member Functions

 Multi (Select &sel, long value, const std::string &text)
void Print ()
bool Selected ()

Public Attributes

long m_value

Detailed Description

Definition at line 50 of file Select.h.


Constructor & Destructor Documentation

Cgi::Select::Multi::Multi ( Select sel,
long  value,
const std::string &  text 
) [inline]

Definition at line 52 of file Select.h.

00052 : Value(sel, text), m_value(value) {}


Member Function Documentation

void Cgi::Select::Multi::Print (  )  [inline, virtual]

Reimplemented from Cgi::Select::Value.

Definition at line 53 of file Select.h.

References Cgi::Select::Value::m_text, m_value, and Selected().

00053                              {
00054                         printf("<option value=%ld%s>%s", m_value, Selected() ? " selected" : "", m_text.c_str());
00055                 }

bool Cgi::Select::Multi::Selected (  )  [inline, virtual]

Reimplemented from Cgi::Select::Value.

Definition at line 56 of file Select.h.

References Cgi::Select::Value::m_sel, Cgi::Select::m_selected, and m_value.

Referenced by Print().

00056                                 {
00057                         if (m_value == m_sel.m_selected)
00058                                 return true;
00059                         return false;
00060                 }


Member Data Documentation

long Cgi::Select::Multi::m_value

Definition at line 61 of file Select.h.

Referenced by Print(), and Selected().


The documentation for this class was generated from the following file:
Generated for cgi++ by doxygen 1.3.7

Page, code, and content Copyright (C) 2004 by Anders Hedström