00001 // ===================================================================== 00002 // $Id: TCommandTable.hh,v 1.2 2003/07/30 16:17:31 goiwai Exp $ 00003 // $Name: CLDAQ-1-08-02 $ 00004 // 00005 // $Log: TCommandTable.hh,v $ 00006 // Revision 1.2 2003/07/30 16:17:31 goiwai 00007 // ファイルにコミットログをつけることにしました. 00008 // 00009 // ===================================================================== 00010 #ifndef __TCOMMANDTABLE_HH 00011 #define __TCOMMANDTABLE_HH 00012 00013 #include "Tglobals.h" 00014 #include "TCommandSpecified.hh" 00015 00016 class TCommandTable 00017 : public Tvector<TCommandSpecified> 00018 { 00019 00020 public: 00021 TCommandTable(); 00022 ~TCommandTable(); 00023 00024 public: 00025 TCommand* FindCommand( const Tstring& fullname ) const; 00026 TCommand* FindCommand( const Tstring& name, const Tstring& path ) const; 00027 Tbool AlreadyExist( TCommand* command ) const; 00028 Tbool AlreadyExist( const Tstring& fullname ) const; 00029 Tbool AlreadyExist( const Tstring& name, const Tstring& path ) const; 00030 Tbool AlreadyExistDirectory( const Tstring& path ) const; 00031 Tbool AlreadyExistDirectory( const Tstring& name, const Tstring& path ) const; 00032 Tvoid AddCommand( TCommand* command ); 00033 Tvoid RemoveCommand( Tint index ); 00034 Tint GetSize() const; 00035 Tvoid Clear(); 00036 TstringList GetDirectoryList( const Tstring& path = "/" ) const; 00037 TstringList GetCommandList( const Tstring& path = "/" ) const; 00038 TstringList Sort( const Tstring& path = "/" ) const; 00039 TstringList Sort( const TstringList& sort ) const; 00040 Tvoid List( Tint column, const TstringList& strlist ) const; 00041 Tvoid List( Tint column, const Tstring& path = "/" ) const; 00042 TCommandSpecified GetCommandSpecified( Tint index ) const; 00043 TCommandSpecified GetCommandSpecified( const Tstring& fullname ) const; 00044 00045 private: 00046 TCommandSpecified convert( TCommand* command ) const; 00047 00048 }; 00049 00050 #endif