©2004 by Marc J. Rochkind. All rights reserved. Portions marked "Open Source" may be copied under license.

 

Main Page   Modules   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members  

ux/uxexitstatus.hpp

Go to the documentation of this file.
00001 /*
00002     Copyright 2003 by Marc J. Rochkind. All rights reserved.
00003     May be copied only for purposes and under conditions described
00004     on the Web page www.basepath.com/aup/copyright.htm.
00005 
00006     The Example Files are provided "as is," without any warranty;
00007     without even the implied warranty of merchantability or fitness
00008     for a particular purpose. The author and his publisher are not
00009     responsible for any damages, direct or incidental, resulting
00010     from the use or non-use of these Example Files.
00011 
00012     The Example Files may contain defects, and some contain deliberate
00013     coding mistakes that were included for educational reasons.
00014     You are responsible for determining if and how the Example Files
00015     are to be used.
00016 
00017 */
00018 #ifndef _UXEXITSTATUS_HPP_
00019 #define _UXEXITSTATUS_HPP_
00020 
00021 namespace Ux {
00022 
00023 /**
00024     \ingroup Ux
00025 */
00026 class ExitStatus : public Base {
00027 protected:
00028     int status;
00029 
00030 public:
00031     ExitStatus(int s = 0)
00032         : status(s)
00033         { }
00034     void set(int s = 0)
00035         { status = s; }
00036     operator int()
00037         { return status; }
00038 };
00039 
00040 //@{
00041 /** \name ostream Operators
00042 Operator to display ExitStatus.
00043 */
00044 std::ostream& operator<<(std::ostream& s, const ExitStatus& s);
00045 //@}
00046 
00047 } // namespace
00048 
00049 #endif // _UXEXITSTATUS_HPP_

Generated on Fri Apr 23 10:57:05 2004 for AUP2 Example Source by doxygen 1.3.1