CGIApplicationUnauthenticated.cc

00001 /*
00002  * $Id: CGIApplicationUnauthenticated.cc,v 1.4 2006/03/28 16:12:01 brook Exp $
00003  */
00004 
00005 /*
00006  * ClearSilver++ Software License.
00007  *
00008  * Copyright (c) 2006 Brook Milligan <brook@nmsu.edu>
00009  * All rights reserved.
00010  * 
00011  * Redistribution and use in source and binary forms, with or without
00012  * modification, are permitted provided that the following conditions
00013  * are met:
00014  * 
00015  * 1. Redistributions of source code must retain the above copyright
00016  *    notice, this list of conditions and the following disclaimer.
00017  * 2. Redistributions in binary form must reproduce the above
00018  *    copyright notice, this list of conditions and the following
00019  *    disclaimer in the documentation and/or other materials provided
00020  *    with the distribution.
00021  * 3. The name of the author may not be used to endorse or promote
00022  *    products derived from this software without specific prior
00023  *    written permission.
00024  * 
00025  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS
00026  * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
00027  * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
00028  * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
00029  * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
00030  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
00031  * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
00032  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
00033  * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
00034  * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
00035  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
00036  */
00037 
00038 #include "CGIApplicationUnauthenticated.h"
00039 #include <stdexcept>
00040 
00041 namespace ClearSilver
00042 {
00043 
00044                                 // constructors
00045   CGIApplicationUnauthenticated::CGIApplicationUnauthenticated ()
00046     : CGIApplication() {}
00047 
00048   CGIApplicationUnauthenticated::CGIApplicationUnauthenticated
00049   (const char* name)
00050     : CGIApplication(name) {}
00051 
00052   CGIApplicationUnauthenticated::CGIApplicationUnauthenticated
00053   (const std::string& name)
00054     : CGIApplication(name) {}
00055 
00056   CGIApplicationUnauthenticated::CGIApplicationUnauthenticated (const HDF& hdf)
00057     : CGIApplication(hdf) {}
00058 
00059   CGIApplicationUnauthenticated::CGIApplicationUnauthenticated
00060   (const CGIApplicationUnauthenticated& a)
00061     : CGIApplication(a) {}
00062 
00063   CGIApplicationUnauthenticated::~CGIApplicationUnauthenticated () throw() {}
00064 
00065                                 // assignment
00066   CGIApplicationUnauthenticated&
00067   CGIApplicationUnauthenticated::operator =
00068   (const CGIApplicationUnauthenticated& a)
00069   {
00070     CGIApplicationUnauthenticated a_(a);
00071     swap (a_);
00072     return *this;
00073   }
00074 
00075                                 // swap contents
00076   void
00077   CGIApplicationUnauthenticated::swap (CGIApplicationUnauthenticated& a) throw()
00078   {
00079     CGIApplication::swap (a);
00080   }
00081 
00082 
00083   bool
00084   CGIApplicationUnauthenticated::authenticate () { return true; }
00085 
00086   void
00087   CGIApplicationUnauthenticated::execute_unauthenticated()
00088   {
00089     throw std::logic_error
00090       ("ClearSilver::CGIApplicationUnauthenticated::execute_unauthenticated(): "
00091        "impossible error -- this method should never be called");
00092   }
00093 
00094   void
00095   CGIApplicationUnauthenticated::display_unauthenticated()
00096   {
00097     throw std::logic_error
00098       ("ClearSilver::CGIApplicationUnauthenticated::display_unauthenticated(): "
00099        "impossible error -- this method should never be called");
00100   }
00101 
00102 };                              // namespace ClearSilver

Generated on Tue May 16 14:50:52 2006 for ClearSilver C++ Library by  doxygen 1.4.5