1 /*---------------------------------------------------------------------------*
2   Project:  Horizon
3   File:     fnd_Result.h
4 
5   Copyright (C)2009 Nintendo Co., Ltd.  All rights reserved.
6 
7   These coded instructions, statements, and computer programs contain
8   proprietary information of Nintendo of America Inc. and/or Nintendo
9   Company Ltd., and are protected by Federal copyright law.  They may
10   not be disclosed to third parties or copied or duplicated in any form,
11   in whole or in part, without the prior written consent of Nintendo.
12 
13   $Rev: 18508 $
14  *---------------------------------------------------------------------------*/
15 /*!
16     @file
17 
18     :include nn/fnd.h
19  */
20 
21 #ifndef NN_FND_FND_RESULT_H_
22 #define NN_FND_FND_RESULT_H_
23 
24 #ifdef __cplusplus
25 
26 #include <nn/Result.h>
27 
28 namespace nn { namespace fnd {
29 
30     /*
31         @brief Result コードの詳細
32     */
33     enum Description
34     {
35         DESCRIPTION_INVALID_NODE                        = 1,        //!< 不正なノード
36         DESCRIPTION_ALREADY_LISTED                      = 2,        //!< リストにノードがない
37         DESCRIPTION_OBSOLETE_RESULT                     = 1023      //!< Obsolete できるだけ早く他のエラーに修正すべき。
38     };
39 
40     NN_DEFINE_RESULT_FUNC_LM(MakePermanentResult, Result::LEVEL_PERMANENT, Result::MODULE_NN_FND);
41 
42     NN_DEFINE_RESULT_CONST(
43         MakeResultInvalidNode,
44         Result::LEVEL_USAGE, Result::SUMMARY_INVALID_ARGUMENT, Result::MODULE_NN_FND, nn::fnd::DESCRIPTION_INVALID_NODE
45     );
46 
47     NN_DEFINE_RESULT_CONST(
48         MakeResultAlreadyListed,
49         Result::LEVEL_USAGE, Result::SUMMARY_INVALID_ARGUMENT, Result::MODULE_NN_FND, nn::fnd::DESCRIPTION_ALREADY_LISTED
50     );
51 
52     NN_DEFINE_RESULT_CONST(
53         MakeResultInvalidAddress,
54         Result::LEVEL_USAGE, Result::SUMMARY_INVALID_ARGUMENT, Result::MODULE_NN_FND, nn::Result::DESCRIPTION_INVALID_ADDRESS
55     );
56 
57 
58 }}
59 
60 #endif // __cplusplus
61 
62 #endif /* NN_FND_FND_RESULT_H_ */
63