feisty meow concerns codebase
2.140
mdate.cpp
Go to the documentation of this file.
1
/*****************************************************************************\
2
* *
3
* Name : mdate *
4
* Author : Chris Koeritz *
5
* *
6
* Purpose: *
7
* *
8
* Provides a more informative date command, providing milliseconds also. *
9
* *
10
*******************************************************************************
11
* Copyright (c) 2002-$now By Author. This program is free software; you can *
12
* redistribute it and/or modify it under the terms of the GNU General Public *
13
* License as published by the Free Software Foundation; either version 2 of *
14
* the License or (at your option) any later version. This is online at: *
15
* http://www.fsf.org/copyleft/gpl.html *
16
* Please send any updates to: fred@gruntose.com *
17
\*****************************************************************************/
18
19
#include <
basis/astring.h
>
20
#include <
application/hoople_main.h
>
21
#include <
loggers/console_logger.h
>
22
#include <
timely/time_stamp.h
>
23
#include <
structures/static_memory_gremlin.h
>
24
25
#include <math.h>
26
27
using namespace
application
;
28
using namespace
basis
;
29
using namespace
loggers
;
30
using namespace
structures
;
31
using namespace
timely
;
32
33
class
mdate_app :
public
application_shell
34
{
35
public
:
36
virtual
int
execute() {
37
SETUP_CONSOLE_LOGGER
;
38
program_wide_logger::get().log(time_stamp::notarize(
false
), ALWAYS_PRINT);
39
return
0;
40
}
41
DEFINE_CLASS_NAME
(
"mdate_app"
);
42
};
43
44
HOOPLE_MAIN
(mdate_app, )
45
astring.h
application::application_shell
The application_shell is a base object for console programs.
Definition:
application_shell.h:33
console_logger.h
SETUP_CONSOLE_LOGGER
#define SETUP_CONSOLE_LOGGER
< a macro that retasks the program-wide logger as a console_logger.
Definition:
console_logger.h:69
DEFINE_CLASS_NAME
#define DEFINE_CLASS_NAME(objname)
Defines the name of a class by providing a couple standard methods.
Definition:
enhance_cpp.h:45
hoople_main.h
Provides macros that implement the 'main' program of an application.
HOOPLE_MAIN
#define HOOPLE_MAIN(obj_name, obj_args)
options that should work for most unix and linux apps.
Definition:
hoople_main.h:61
application
Implements an application lock to ensure only one is running at once.
Definition:
application_shell.cpp:40
basis
The guards collection helps in testing preconditions and reporting errors.
Definition:
array.h:30
loggers
A logger that sends to the console screen using the standard output device.
Definition:
combo_logger.cpp:36
structures
A dynamic container class that holds any kind of object via pointers.
Definition:
amorph.h:55
timely
#include <time.h>
Definition:
earth_time.cpp:37
static_memory_gremlin.h
time_stamp.h
nucleus
applications
utilities
mdate.cpp
Generated by
1.9.1