#include <anl_file_mngr.h>

Public Member Functions | |
| ANL_FILE_MNGR (ANL_DIAGNOSTICS *diag) | |
| ~ANL_FILE_MNGR () | |
| void | Open_Read (const char *name) |
| void | Open_Create (const char *name) |
| void | Open_Append (const char *name) |
| void | Close_File () |
| void | Close_And_Remove_File () |
| BOOL | File_Is_Open () |
| BOOL | End_Of_File () |
| char | Peek_Char () |
| char | Read_Char () |
| UINT64 | Read_Uint64 (BOOL as_hex=FALSE) |
| UINT64 | Read_Ptr () |
| void | Write_Char (char c) |
| void | Write_String (const char *s) |
| void | Flush_Write_Buffer () |
| const char * | Name () const |
| FILE * | File () |
Private Member Functions | |
| void | _General_Check (BOOL c, const char *proc_name, const char *msg) |
| void | _Not_Open_Check (const char *proc_name, const char *to_be_opened) |
| void | _Is_Open_Check (const char *proc_name) |
| void | _Overwrite_Warning (const char *proc_name, const char *filename) |
| void | _Write_Obuf () |
Static Private Member Functions | |
| static void | _Concat (char *buf, INT max_chars, const char *string[], INT num_strings) |
| static UINT64 | _Get_Decimal_Number (INT ch) |
| static UINT64 | _Get_Hex_Number (INT ch) |
| static BOOL | _Exists (const char *name) |
Private Attributes | |
| ANL_DIAGNOSTICS * | _diag |
| const char * | _name |
| FILE * | _file |
| INT32 | _next_ch |
| INT | _next_obuf |
| char | _obuf [_obuf_size+1] |
Static Private Attributes | |
| static const INT | _obuf_size = 513 |
Definition at line 84 of file anl_file_mngr.h.
| ANL_FILE_MNGR::ANL_FILE_MNGR | ( | ANL_DIAGNOSTICS * | diag | ) | [inline] |
Definition at line 114 of file anl_file_mngr.h.
| ANL_FILE_MNGR::~ANL_FILE_MNGR | ( | ) | [inline] |
Definition at line 122 of file anl_file_mngr.h.
References _file, Close_File(), and NULL.

| void ANL_FILE_MNGR::_Concat | ( | char * | buf, | |
| INT | max_chars, | |||
| const char * | string[], | |||
| INT | num_strings | |||
| ) | [static, private] |
Definition at line 62 of file anl_file_mngr.cxx.
Referenced by _General_Check(), _Is_Open_Check(), _Not_Open_Check(), and _Overwrite_Warning().
| BOOL ANL_FILE_MNGR::_Exists | ( | const char * | name | ) | [static, private] |
Definition at line 174 of file anl_file_mngr.cxx.
References errno, FALSE, INT, stat, and TRUE.
Referenced by _Overwrite_Warning().
| void ANL_FILE_MNGR::_General_Check | ( | BOOL | c, | |
| const char * | proc_name, | |||
| const char * | msg | |||
| ) | [private] |
Definition at line 187 of file anl_file_mngr.cxx.
References _Concat(), _diag, _name, strlist(), and ANL_DIAGNOSTICS::Warning().
Referenced by _Write_Obuf(), Close_And_Remove_File(), Close_File(), Open_Read(), Read_Char(), and Read_Uint64().

Definition at line 84 of file anl_file_mngr.cxx.
References UINT64_MAX.
Referenced by Read_Uint64().
Definition at line 117 of file anl_file_mngr.cxx.
References UINT64_MAX.
Referenced by Read_Uint64().
| void ANL_FILE_MNGR::_Is_Open_Check | ( | const char * | proc_name | ) | [private] |
Definition at line 218 of file anl_file_mngr.cxx.
References _Concat(), _diag, ANL_DIAGNOSTICS::Error(), File_Is_Open(), and strlist().
Referenced by Open_Append(), Open_Create(), and Open_Read().

| void ANL_FILE_MNGR::_Not_Open_Check | ( | const char * | proc_name, | |
| const char * | to_be_opened | |||
| ) | [private] |
Definition at line 200 of file anl_file_mngr.cxx.
References _Concat(), _diag, _name, Close_File(), File_Is_Open(), strlist(), and ANL_DIAGNOSTICS::Warning().
Referenced by Open_Append(), Open_Create(), and Open_Read().

| void ANL_FILE_MNGR::_Overwrite_Warning | ( | const char * | proc_name, | |
| const char * | filename | |||
| ) | [private] |
Definition at line 232 of file anl_file_mngr.cxx.
References _Concat(), _diag, _Exists(), strlist(), and ANL_DIAGNOSTICS::Warning().
Referenced by Open_Create().

| void ANL_FILE_MNGR::_Write_Obuf | ( | ) | [private] |
Definition at line 247 of file anl_file_mngr.cxx.
References _file, _General_Check(), _next_obuf, _obuf, EOF, and INT.
Referenced by Close_And_Remove_File(), Close_File(), Flush_Write_Buffer(), Write_Char(), and Write_String().

| void ANL_FILE_MNGR::Close_And_Remove_File | ( | ) |
Definition at line 315 of file anl_file_mngr.cxx.
References _file, _General_Check(), _name, _next_obuf, _Write_Obuf(), and NULL.

| void ANL_FILE_MNGR::Close_File | ( | ) |
Definition at line 299 of file anl_file_mngr.cxx.
References _file, _General_Check(), _name, _next_obuf, _Write_Obuf(), and NULL.
Referenced by _Not_Open_Check(), Anl_Cleanup(), Anl_Init(), Anl_Static_Analysis(), and ~ANL_FILE_MNGR().

| BOOL ANL_FILE_MNGR::End_Of_File | ( | ) | [inline] |
Definition at line 131 of file anl_file_mngr.h.
Referenced by Read_Char(), and Read_Uint64().
| FILE* ANL_FILE_MNGR::File | ( | ) | [inline] |
Definition at line 141 of file anl_file_mngr.h.
References _file.
Referenced by W2CF_TRANSLATOR::Expr_To_File().
| BOOL ANL_FILE_MNGR::File_Is_Open | ( | ) | [inline] |
Definition at line 130 of file anl_file_mngr.h.
Referenced by _Is_Open_Check(), _Not_Open_Check(), and Anl_Cleanup().
| void ANL_FILE_MNGR::Flush_Write_Buffer | ( | ) | [inline] |
Definition at line 138 of file anl_file_mngr.h.
References _next_obuf, and _Write_Obuf().

| const char* ANL_FILE_MNGR::Name | ( | void | ) | const [inline] |
Definition at line 140 of file anl_file_mngr.h.
References _name.
| void ANL_FILE_MNGR::Open_Append | ( | const char * | name | ) |
Definition at line 289 of file anl_file_mngr.cxx.
References _file, _Is_Open_Check(), _name, and _Not_Open_Check().
Referenced by Anl_Static_Analysis().

| void ANL_FILE_MNGR::Open_Create | ( | const char * | name | ) |
Definition at line 278 of file anl_file_mngr.cxx.
References _file, _Is_Open_Check(), _name, _Not_Open_Check(), and _Overwrite_Warning().
Referenced by Anl_Init().

| void ANL_FILE_MNGR::Open_Read | ( | const char * | name | ) |
Definition at line 264 of file anl_file_mngr.cxx.
References _file, _General_Check(), _Is_Open_Check(), _name, _next_ch, and _Not_Open_Check().

| char ANL_FILE_MNGR::Peek_Char | ( | ) | [inline] |
Definition at line 132 of file anl_file_mngr.h.
References _next_ch.
| char ANL_FILE_MNGR::Read_Char | ( | ) |
Definition at line 332 of file anl_file_mngr.cxx.
References _file, _General_Check(), _next_ch, and End_Of_File().

| UINT64 ANL_FILE_MNGR::Read_Ptr | ( | ) | [inline] |
Definition at line 135 of file anl_file_mngr.h.
References Read_Uint64(), and TRUE.

Definition at line 346 of file anl_file_mngr.cxx.
References _file, _General_Check(), _Get_Decimal_Number(), _Get_Hex_Number(), _next_ch, End_Of_File(), result, and UINT64_MAX.
Referenced by Read_Ptr().

| void ANL_FILE_MNGR::Write_Char | ( | char | c | ) |
Definition at line 398 of file anl_file_mngr.cxx.
References _next_obuf, _obuf, _obuf_size, and _Write_Obuf().

| void ANL_FILE_MNGR::Write_String | ( | const char * | s | ) |
Definition at line 408 of file anl_file_mngr.cxx.
References _next_obuf, _obuf, _obuf_size, _Write_Obuf(), and NULL.
Referenced by Anl_Init(), and ANL_FUNC_ENTRY::Emit_Original_Construct().

ANL_DIAGNOSTICS* ANL_FILE_MNGR::_diag [private] |
Definition at line 88 of file anl_file_mngr.h.
Referenced by _General_Check(), _Is_Open_Check(), _Not_Open_Check(), and _Overwrite_Warning().
FILE* ANL_FILE_MNGR::_file [private] |
Definition at line 90 of file anl_file_mngr.h.
Referenced by _Write_Obuf(), Close_And_Remove_File(), Close_File(), File(), File_Is_Open(), Open_Append(), Open_Create(), Open_Read(), Read_Char(), Read_Uint64(), and ~ANL_FILE_MNGR().
const char* ANL_FILE_MNGR::_name [private] |
Definition at line 89 of file anl_file_mngr.h.
Referenced by _General_Check(), _Not_Open_Check(), Close_And_Remove_File(), Close_File(), Name(), Open_Append(), Open_Create(), and Open_Read().
INT32 ANL_FILE_MNGR::_next_ch [private] |
Definition at line 91 of file anl_file_mngr.h.
Referenced by End_Of_File(), Open_Read(), Peek_Char(), Read_Char(), and Read_Uint64().
INT ANL_FILE_MNGR::_next_obuf [private] |
Definition at line 94 of file anl_file_mngr.h.
Referenced by _Write_Obuf(), Close_And_Remove_File(), Close_File(), Flush_Write_Buffer(), Write_Char(), and Write_String().
char ANL_FILE_MNGR::_obuf[_obuf_size+1] [private] |
Definition at line 95 of file anl_file_mngr.h.
Referenced by _Write_Obuf(), Write_Char(), and Write_String().
const INT ANL_FILE_MNGR::_obuf_size = 513 [static, private] |
Definition at line 93 of file anl_file_mngr.h.
Referenced by Write_Char(), and Write_String().
1.6.1