Back to index

nordugrid-arc-nox  1.1.0~rc6
Public Member Functions | Public Attributes
Arc::ARCModuleDescriptor::ARCPluginDescriptor Class Reference
Collaboration diagram for Arc::ARCModuleDescriptor::ARCPluginDescriptor:
Collaboration graph

List of all members.

Public Member Functions

 ARCPluginDescriptor (std::ifstream &in)

Public Attributes

std::string name
std::string kind
uint32_t version
bool valid

Detailed Description

Definition at line 51 of file Plugin.cpp.

Constructor & Destructor Documentation

Definition at line 57 of file Plugin.cpp.

                                          :valid(false) {
        if(!in) return;
        std::string line;
        // Protect against insane line length?
        while(std::getline(in,line)) {
          line = trim(line);
          if(line.empty()) break; // end of descripton
          std::string::size_type p = line.find('=');
          std::string tag = line.substr(0,p);
          line = trim(line);
          if(line.length() < 2) return;
          if(line[0] != '"') return;
          if(line[line.length()-1] != '"') return;
          while((p = line.find('\\',p)) != std::string::npos) {
            line.replace(p,1,""); ++p;
          if(tag == "name") {
            name = line;
          } else if(tag == "kind") {
            kind = line;
          } else if(tag == "version") {
            if(!stringto(line,version)) return;
        if(name.empty()) return;
        if(kind.empty()) return;
        valid = true;

Here is the call graph for this function:

Member Data Documentation

Definition at line 54 of file Plugin.cpp.

Definition at line 53 of file Plugin.cpp.

Definition at line 56 of file Plugin.cpp.

Definition at line 55 of file Plugin.cpp.

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