atlas  0.6
kl_error.h
Go to the documentation of this file.
1 /*
2  This is kl_error.h
3 
4  Copyright (C) 2004,2005 Fokko du Cloux
5  part of the Atlas of Lie Groups and Representations
6 
7  For license information see the LICENSE file
8 */
9 
10 #ifndef KL_ERROR_H /* guard against multiple inclusions */
11 #define KL_ERROR_H
12 
13 #include "../Atlas.h"
14 
15 /******** type declarations *************************************************/
16 
17 namespace atlas {
18 
19 namespace kl_error {
20 
21  struct KLError;
22 
23 }
24 
25 /******** type definitions **************************************************/
26 
27 namespace kl_error {
28 
29 struct KLError {
30  // data
31  size_t x;
32  size_t y;
33  int line;
35  // constructors
36  KLError(size_t x, size_t y, int line, const kl::KLContext& klc)
37  :x(x), y(y), line(line), klc(&klc) {}
38  // accessors
39  void operator() (const char*) const;
40 };
41 
42 }
43 
44 }
45 
46 #endif
Definition: kl_error.h:29
Definition: kl.h:49
size_t x
Definition: kl_error.h:31
size_t y
Definition: kl_error.h:32
int line
Definition: kl_error.h:33
KLError(size_t x, size_t y, int line, const kl::KLContext &klc)
Definition: kl_error.h:36
const kl::KLContext * klc
Definition: kl_error.h:34
Definition: Atlas.h:38