Rev 1021 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed
| Rev 1021 | Rev 1024 | ||
|---|---|---|---|
| Line 39... | Line 39... | ||
| 39 | myInstance = NULL; |
39 | myInstance = NULL; |
| 40 | } |
40 | } |
| 41 | 41 | ||
| 42 | CanIdTranslator::CanIdTranslator() |
42 | CanIdTranslator::CanIdTranslator() |
| 43 | { |
43 | { |
| 44 |
|
44 | Logger &log = Logger::getInstance(); |
| 45 | 45 | ||
| 46 | string filename = Settings::get("CanIdXMLFile"); |
46 | string filename = Settings::get("CanIdXMLFile"); |
| 47 | 47 | ||
| 48 | if (file_exists(filename)) |
48 | if (file_exists(filename)) |
| 49 | { |
49 | { |
| 50 | xmlNode.load(filename.c_str()); |
50 | xmlNode.load(filename.c_str()); |
| 51 | 51 | ||
| 52 |
|
52 | log.add("Loading definitions from " + filename + ".\n"); |
| 53 | } |
53 | } |
| 54 | else |
54 | else |
| 55 | { |
55 | { |
| 56 |
|
56 | log.add("CanIdXMLFile is not defined in the config file, this will probably not work at all.\n"); |
| 57 | } |
57 | } |
| 58 | } |
58 | } |
| 59 | 59 | ||
| 60 | string CanIdTranslator::lookupClassName(int classId) |
60 | string CanIdTranslator::lookupClassName(int classId) |
| 61 | { |
61 | { |