Main Page   Class Hierarchy   Alphabetical List   Data Structures   File List   Data Fields   Globals  

perftype.hh File Reference

#include "nmlmsg.hh"
#include <stddef.h>

Include dependency graph for perftype.hh:

Include dependency graph

This graph shows which files directly or indirectly include this file:

Included by dependency graph

Go to the source code of this file.

Data Structures

class  NML_PERFORMANCE_TEST_MSG

Defines

#define NML_PERFORMANCE_TEST_MSG_TYPE   ((NMLTYPE) 0xff)

Enumerations

enum  TEST_TYPE {
  CHAR_TEST, SHORT_TEST, INT_TEST, LONG_TEST,
  FLOAT_TEST, DOUBLE_TEST
}

Functions

void set_real_test_msg_size (long)
void delete_test_msg_buffer ()
int perf_types_format (NMLTYPE type, void *buffer, CMS *cms)

Variables

unsigned int real_test_msg_size
unsigned int test_msg_buffer_size
void * test_msg_buffer


Define Documentation

#define NML_PERFORMANCE_TEST_MSG_TYPE   ((NMLTYPE) 0xff)
 

Definition at line 14 of file perftype.hh.


Enumeration Type Documentation

enum TEST_TYPE
 

Enumeration values:
CHAR_TEST 
SHORT_TEST 
INT_TEST 
LONG_TEST 
FLOAT_TEST 
DOUBLE_TEST 

Definition at line 45 of file perftype.hh.

00046 {
00047   CHAR_TEST,
00048   SHORT_TEST,
00049   INT_TEST,
00050   LONG_TEST,
00051   FLOAT_TEST,
00052   DOUBLE_TEST
00053 };


Function Documentation

void set_real_test_msg_size long    size
 

Definition at line 161 of file perftype.cc.

Referenced by nml_perf_combined_test(), and nml_perf_write_test().

00162 {
00163   real_test_msg_size = size;
00164 }

void delete_test_msg_buffer  
 

Definition at line 151 of file perftype.cc.

00152 {
00153   if (NULL != test_msg_buffer)
00154     {
00155       corrected_free (test_msg_buffer);
00156       test_msg_buffer = NULL;
00157     }
00158 }

int perf_types_format NMLTYPE    type,
void *    buffer,
CMS   cms
 

Definition at line 30 of file perftype.cc.

00031 {
00032   switch (type)
00033     {
00034     case NML_PERFORMANCE_TEST_MSG_TYPE:
00035       ((NML_PERFORMANCE_TEST_MSG *) buffer)->update (cms);
00036       break;
00037     default:
00038       rcs_print_error ("perf_types_format: Unknown Type.(%d) (mode = %d)\n",
00039                        type, cms->mode);
00040       return (-1);
00041     }
00042   return (0);
00043 }


Variable Documentation

unsigned int real_test_msg_size
 

Definition at line 62 of file perftype.hh.

unsigned int test_msg_buffer_size
 

Definition at line 63 of file perftype.hh.

void* test_msg_buffer
 

Definition at line 64 of file perftype.hh.


Generated on Sun Dec 2 15:57:26 2001 for rcslib by doxygen1.2.11.1 written by Dimitri van Heesch, © 1997-2001