#include <basis/array.cpp>#include <basis/chaos.h>#include <basis/guards.h>#include <basis/istring.h>#include <basis/mutex.h>#include <basis/portable.h>#include <data_struct/unique_id.h>#include <mechanisms/ithread.h>#include <mechanisms/safe_roller.h>#include <mechanisms/time_stamp.h>#include <nodes/node.h>#include <nodes/catalogable.h>#include <nodes/object_catalog.h>#include <opsystem/application_shell.h>#include <loggers/console_logger.h>#include <loggers/file_logger.h>#include <opsystem/path_configuration.h>#include <data_struct/static_memory_gremlin.h>#include <textual/string_manipulation.h>Include dependency graph for t_object_catalog.cpp:

Go to the source code of this file.
Defines | |
| #define | LOG(to_print) |
| #define | MAYBE_LOG(to_print) {} |
Functions | |
| istring | random_name () |
| bool | restock (object_catalog &list, inventory_item *to_add) |
Variables | |
| const int | DEFAULT_LIFE_TIME = 7 * MINUTE_ms |
| const int | SHELL_SLEEP = 100 |
| const int | PRESIDENT_SLEEP = 142 |
| const int | LOGGING_INTERVAL = 500 |
| chaos | rando |
| #define LOG | ( | to_print | ) |
Value:
program_wide_logger().log(timestamp(true) \ + istring(to_print))
Definition at line 55 of file t_object_catalog.cpp.
| #define MAYBE_LOG | ( | to_print | ) | {} |
Definition at line 60 of file t_object_catalog.cpp.
| istring random_name | ( | ) |
Definition at line 67 of file t_object_catalog.cpp.
References string_manipulation::make_random_name().
| bool restock | ( | object_catalog & | list, | |
| inventory_item * | to_add | |||
| ) |
Definition at line 158 of file t_object_catalog.cpp.
References nodes::object_catalog::add(), nodes::objcat_locket::cat(), nodes::objcat_iterator::close_locket(), nodes::object_catalog::find(), nodes::object_catalog::iter_unlock(), nodes::objcat_iterator::open_locket(), and WHACK().
| const int DEFAULT_LIFE_TIME = 7 * MINUTE_ms |
Definition at line 40 of file t_object_catalog.cpp.
| const int LOGGING_INTERVAL = 500 |
Definition at line 51 of file t_object_catalog.cpp.
| const int PRESIDENT_SLEEP = 142 |
Definition at line 48 of file t_object_catalog.cpp.
Definition at line 65 of file t_object_catalog.cpp.
| const int SHELL_SLEEP = 100 |
Definition at line 44 of file t_object_catalog.cpp.
1.5.1