gAutoStringArray Class Reference

List of all members.

Public Member Functions

 ~gAutoStringArray ()
char * Store (char const *s)

Private Attributes

std::vector< char * > strings


Detailed Description

Definition at line 499 of file gArmagetron.cpp.


Constructor & Destructor Documentation

gAutoStringArray::~gAutoStringArray (  )  [inline]

Definition at line 502 of file gArmagetron.cpp.

References free, and strings.

00502       :
00503     ~gAutoStringArray()
00504     {
00505         for ( std::vector< char * >::iterator i = strings.begin(); i != strings.end(); ++i )
00506         {
00507             free( *i );
00508         }
    }


Member Function Documentation

char* gAutoStringArray::Store ( char const *  s  )  [inline]

Definition at line 510 of file gArmagetron.cpp.

References strdup, and strings.

Referenced by sg_PutEnv().

00512     {
00513         char * ret = strdup( s );
00514         strings.push_back( ret );
00515         return ret;

Here is the caller graph for this function:


Member Data Documentation

std::vector< char * > gAutoStringArray::strings [private]

Definition at line 517 of file gArmagetron.cpp.

Referenced by Store(), and ~gAutoStringArray().


The documentation for this class was generated from the following file:
Generated on Sat Mar 15 23:33:49 2008 for Armagetron Advanced by  doxygen 1.5.4