Main Page   Modules   Class Hierarchy   Compound List   File List   Compound Members   File Members   Related Pages   Examples  

hyp.ker.result.h

00001 /*
00002 \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
00003  Hyperion Pattern.
00004  Hyperion Pattern is a part of the Hyperion Project.
00005 ----------------------------------------------------------
00006  Copyright (c) 2001 Pierre Rebours.
00007 
00008  This library is free software; you can redistribute it and/or
00009  modify it under the terms of the GNU Lesser General Public
00010  License as published by the Free Software Foundation; either
00011  version 2.1 of the License, or (at your option) any later version.
00012 
00013  This library is distributed in the hope that it will be useful,
00014  but WITHOUT ANY WARRANTY; without even the implied warranty of
00015  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
00016  
00017  See hyp.license.txt file for more information about the license.
00018  
00019  Web: http://lagrandeporte.multimania.com/hyperion
00020  Email: pierre_rebours@yahoo.com
00021 ----------------------------------------------------------
00022  CVS
00023  $Log$
00024 \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
00025 */
00026 
00027 
00028 #ifndef _hyp_ker_result_h_
00029 #define _hyp_ker_result_h_
00030 
00031 
00032 #ifndef hyp_KERNEL_CORE_INSIDE
00033 #error Inclusion not allowed (include hyp.kernel.core.h instead)
00034 #endif
00035 
00036 
00045 enum com_result {
00046         com_ok,
00047         com_notified,
00048         com_false,
00049         com_assertion_failed,
00050         com_unexpected,
00051         com_not_impl,
00052         com_no_interface,
00053         com_bad_arguments,
00054         com_no_available,
00055         com_must_no_call,
00056         com_no_aggregation,
00057         com_class_not_available,
00058         com_out_of_memory,
00059         com_invalid_arg,
00060         com_logic_in_arguments,
00061         com_initialisation_data,
00062         com_bad_internal_data,
00063         com_directxfile,
00064         com_ios,
00065         com_envvar,
00066         com_file_missing,
00067         com_winregistry
00068 };
00069 
00074 inline bool Succeeded(com_result Result) {
00075         return (Result==com_ok || Result==com_notified);
00076 }
00077 
00082 inline bool Failed(com_result Result) {
00083         return !Succeeded(Result);      
00084 }
00085 
00086 #endif

Top of Page
written by Pierre Rebours © 2000-2001. Terms of Use.