Esempio n. 1
0
void GeUser::print(int brief)
{
  SystemList* sl;

  std::cout << '\n' << "Proview user database " << user_cVersion << "\n\n";
  for (sl = root; sl != NULL; sl = sl->next)
    sl->print(brief);
  std::cout << '\n';
}
Esempio n. 2
0
void GeUser::print( int brief)
{
  SystemList *sl;

  cout << endl << "Proview user database " << user_cVersion << endl << endl;
  for ( sl = root; sl != NULL; sl = sl->next)
    sl->print( brief);
  cout << endl;
}
Esempio n. 3
0
void SystemList::print(int brief)
{
  UserList* ul;
  SystemList* sl;
  int i, j;

  for (i = 0; i < level; i++)
    std::cout << ". ";
  std::cout << name;
  std::cout << " ";
  for (j = 0; j < int(22 - 2 * i - strlen(name)); j++)
    std::cout << " ";
  if (attributes & user_mSystemAttr_UserInherit)
    std::cout << "UserInherit";
  std::cout << '\n';
  for (ul = (UserList*)userlist; ul; ul = ul->next)
    ul->print(brief);
  for (sl = childlist; sl; sl = sl->next)
    sl->print(brief);
}