Back to index

nordugrid-arc-nox  1.1.0~rc6
Classes | Public Member Functions | Private Attributes
Arc::ARCModuleDescriptor Class Reference
Collaboration diagram for Arc::ARCModuleDescriptor:
Collaboration graph
[legend]

List of all members.

Classes

class  ARCPluginDescriptor

Public Member Functions

 ARCModuleDescriptor (std::ifstream &in)
 operator bool (void) const
bool operator! (void) const
bool contains (const std::list< std::string > &kinds) const
bool contains (const std::string &kind) const
bool contains (const std::string &kind, const std::string &pname)
void get (std::list< PluginDesc > &descs)

Private Attributes

bool valid
std::list< ARCPluginDescriptordescriptors

Detailed Description

Definition at line 48 of file Plugin.cpp.


Constructor & Destructor Documentation

Arc::ARCModuleDescriptor::ARCModuleDescriptor ( std::ifstream &  in) [inline]

Definition at line 91 of file Plugin.cpp.

                                        :valid(false) {
      if(!in) return;
      for(;;) {
        ARCPluginDescriptor plg(in);
        if(!plg.valid) break;
        descriptors.push_back(plg);
      };
      valid = true;
    }

Member Function Documentation

bool Arc::ARCModuleDescriptor::contains ( const std::list< std::string > &  kinds) const [inline]

Definition at line 104 of file Plugin.cpp.

                                                         {
      if(kinds.size() == 0) return valid;
      for(std::list<std::string>::const_iterator kind = kinds.begin();
               kind != kinds.end(); ++kind) {
        if(contains(*kind)) return true;
      };
      return false;
    }

Here is the caller graph for this function:

bool Arc::ARCModuleDescriptor::contains ( const std::string &  kind) const [inline]

Definition at line 113 of file Plugin.cpp.

                                               {
      for(std::list<ARCPluginDescriptor>::const_iterator desc =
                descriptors.begin(); desc != descriptors.end(); ++desc) {
        if(desc->kind == kind) return true;
      };
      return false;
    };
bool Arc::ARCModuleDescriptor::contains ( const std::string &  kind,
const std::string &  pname 
) [inline]

Definition at line 121 of file Plugin.cpp.

                                                                 {
      for(std::list<ARCPluginDescriptor>::const_iterator desc =
                descriptors.begin(); desc != descriptors.end(); ++desc) {
        if((desc->name == pname) && (desc->kind == kind)) return true;
      };
      return false;
    };
void Arc::ARCModuleDescriptor::get ( std::list< PluginDesc > &  descs) [inline]

Definition at line 129 of file Plugin.cpp.

                                         {
      for(std::list<ARCPluginDescriptor>::const_iterator desc =
                descriptors.begin(); desc != descriptors.end(); ++desc) {
        PluginDesc pd;
        pd.name = desc->name;
        pd.kind = desc->kind;
        pd.version = desc->version;
        descs.push_back(pd);
      };
    };

Here is the caller graph for this function:

Arc::ARCModuleDescriptor::operator bool ( void  ) const [inline]

Definition at line 101 of file Plugin.cpp.

{ return valid; };
bool Arc::ARCModuleDescriptor::operator! ( void  ) const [inline]

Definition at line 102 of file Plugin.cpp.

{ return !valid; };

Member Data Documentation

Definition at line 89 of file Plugin.cpp.

Definition at line 50 of file Plugin.cpp.


The documentation for this class was generated from the following file: