UniSet  2.2.1
UTypes.h
00001 #ifndef UTypes_H_
00002 #define UTypes_H_
00003 // --------------------------------------------------------------------------
00004 #include <UniSetTypes.h>
00005 // --------------------------------------------------------------------------
00006 namespace UTypes
00007 {
00008     const long DefaultID = UniSetTypes::DefaultObjectId;
00009 
00010     struct Params
00011     {
00012         static const int max = 20;
00013 
00014         Params(): argc(0)
00015         {
00016             memset(argv, 0, sizeof(argv));
00017         }
00018 
00019         bool add( char* s )
00020         {
00021             if( argc < Params::max )
00022             {
00023                 argv[argc++] = s;
00024                 return true;
00025             }
00026 
00027             return false;
00028         }
00029 
00030         int argc;
00031         char* argv[max];
00032 
00033         static Params inst()
00034         {
00035             return Params();
00036         }
00037     };
00038 }
00039 //---------------------------------------------------------------------------
00040 #endif
00041 //---------------------------------------------------------------------------