-
Notifications
You must be signed in to change notification settings - Fork 131
Expand file tree
/
Copy pathclass_strings.h
More file actions
52 lines (44 loc) · 1.71 KB
/
class_strings.h
File metadata and controls
52 lines (44 loc) · 1.71 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
#ifndef CLASS_STRINGS_H
#define CLASS_STRINGS_H
/** \file class_strings.h
* These functions are all required to generate class names, so they
* are used by the configure-time schema scanner to determine what
* filenames will be used for a given schema. They are grouped here
* to reduce the number of source files the scanner depends upon.
*
* Functions prototyped here are implemented in class_strings.c
*/
#include <express/entity.h>
#include <express/type.h>
#define MAX_LEN 240
#define TYPE_PREFIX "Sdai"
#define ENTITYCLASS_PREFIX TYPE_PREFIX
/** \returns: temporary copy of name suitable for use as a class name
* Side Effects: erases the name created by a previous call to this function
*/
const char * ClassName( const char * oldname );
/** \returns the name of the c++ class representing the entity */
const char * ENTITYget_classname( Entity ent );
/** supplies the type of a data member for the c++ class
* \returns: a string which is the type of the data member in the c++ class
*/
const char * TYPEget_ctype( const Type t );
/** name of type as defined in SDAI C++ binding 4-Nov-1993 */
const char * TypeName( Type t );
/** These functions take a character or a string and return
** a temporary copy of the string with the function applied to it.
**
** Side Effects: character or string returned persists until the
** next invocation of the function
**
** \returns a temporary copy of characters
** @{
*/
char ToLower( char c );
char ToUpper( char c );
const char * StrToLower( const char * word );
const char * StrToUpper( const char * word );
const char * StrToConstant( const char * word );
const char * FirstToUpper( const char * word );
/* @} */
#endif /* CLASS_STRINGS_H */