Back to index

nordugrid-arc-nox  1.1.0~rc6
Classes | Functions
InfoFilterTest.cpp File Reference
#include <iostream>
#include <string>
#include <cppunit/extensions/HelperMacros.h>
#include <glibmm/fileutils.h>
#include <glibmm/miscutils.h>
#include <arc/Utils.h>
#include <arc/infosys/InfoFilter.h>

Go to the source code of this file.

Classes

class  InfoFilterTest
class  TestSecAttr

Functions

static void add_libs (std::string &paths, const std::string &curpath)
static void add_subject_attribute (XMLNode item, const std::string &subject, const char *id)
 CPPUNIT_TEST_SUITE_REGISTRATION (InfoFilterTest)

Function Documentation

static void add_libs ( std::string &  paths,
const std::string &  curpath 
) [static]

Definition at line 32 of file InfoFilterTest.cpp.

                                                                {
  std::string fname = Glib::build_filename(curpath,".libs");
  if(file_test(fname, Glib::FILE_TEST_IS_DIR)) {
    paths+=":"+fname;
  };
  Glib::Dir dir(curpath);
  for(;;) {
    fname = dir.read_name();
    if(fname.empty()) break;
    fname=Glib::build_filename(curpath,fname);
    if(fname == ".libs") {
    } else if(file_test(fname, Glib::FILE_TEST_IS_DIR)) {
      add_libs(paths,fname);
    };
  };
}

Here is the caller graph for this function:

static void add_subject_attribute ( XMLNode  item,
const std::string &  subject,
const char *  id 
) [static]

Definition at line 83 of file InfoFilterTest.cpp.

          {
   XMLNode attr = item.NewChild("ra:SubjectAttribute");
   attr=subject; attr.NewAttribute("Type")="string";
   attr.NewAttribute("AttributeId")=id;
}

Here is the call graph for this function: