core.a content.a templates.a confparser.a have gone away there is only: cmslu.a now (in the global directory 'cmslu') changed: the way of building in Makefile(s) we dont longer use explicitly a variable 'o = file1.o file2.o...' it was put into Makefile.o.dep and is generated automatically when 'make depend' is invoked changed: some #include "..." directives were put from *.h to *.cpp files fewer dependences git-svn-id: svn://ttmath.org/publicrep/cmslu/trunk@501 e52654a7-88a9-db11-a3e9-0013d4bc506e
82 lines
1.1 KiB
C++
Executable File
82 lines
1.1 KiB
C++
Executable File
/*
|
|
* This file is a part of CMSLU -- Content Management System like Unix
|
|
* and is not publicly distributed
|
|
*
|
|
* Copyright (c) 2008-2009, Tomasz Sowa
|
|
* All rights reserved.
|
|
*
|
|
*/
|
|
|
|
#ifndef headerfilecmslucorefunction
|
|
#define headerfilecmslucorefunction
|
|
|
|
#include <iostream>
|
|
#include "item.h"
|
|
|
|
|
|
#define FUN_NONE 0
|
|
#define FUN_LS 1
|
|
#define FUN_CAT 2
|
|
#define FUN_NODE 3
|
|
#define FUN_EMACS 4
|
|
#define FUN_MKDIR 5
|
|
#define FUN_DEFAULT 6
|
|
#define FUN_PRIV 7
|
|
#define FUN_RM 8
|
|
#define FUN_LOGIN 9
|
|
#define FUN_LOGOUT 10
|
|
#define FUN_RUN 11
|
|
#define FUN_WHO 12
|
|
#define FUN_LAST 13
|
|
#define FUN_CREATETHREAD 14
|
|
#define FUN_THREAD 15
|
|
|
|
|
|
|
|
|
|
class Function
|
|
{
|
|
|
|
public:
|
|
|
|
/*
|
|
enum Code
|
|
{
|
|
none,
|
|
ls,
|
|
cat,
|
|
node,
|
|
emacs,
|
|
mkdir,
|
|
default,
|
|
priv,
|
|
rm,
|
|
login,
|
|
logout,
|
|
run,
|
|
who
|
|
};
|
|
|
|
|
|
Code code;
|
|
*/
|
|
/*
|
|
we do not use enum etc. because the code will be used with an application too
|
|
(application can set others values)
|
|
*/
|
|
int code;
|
|
Item item;
|
|
|
|
void Clear();
|
|
|
|
Function();
|
|
Function(const Function & f);
|
|
Function & operator=(const Function & f);
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
#endif
|