This file is indexed.

/usr/include/salome/DF_Container.hxx is in salome-kernel-dev 6.5.0-7ubuntu2.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
// Copyright (C) 2007-2012  CEA/DEN, EDF R&D, OPEN CASCADE
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 2.1 of the License.
//
// This library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with this library; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
//
// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
//

#ifndef DFCONTAINER_HXX
#define DFCONTAINER_HXX

#include "DF_definitions.hxx"
#include "DF_Attribute.hxx"
#include <string>
#include <map>

//Class DF_Container is used to store several types of data 
class DF_Container : public DF_Attribute 
{
public:

  //Static method that returns an ID of the give type of attributes
  Standard_EXPORT static const std::string& GetID();

  //Creates if not exists a Container attribute and places if is not placed it the Label
  Standard_EXPORT static DF_Container* Set(DF_Label& theLabel);

  //Constructor
  Standard_EXPORT DF_Container();

  //Destructor
  Standard_EXPORT ~DF_Container();

  //Sets an integer value of the attribute with given ID
  Standard_EXPORT void SetInt(const std::string& theID, int theValue);

  //Returns an integer value of the attribute with given ID
  Standard_EXPORT int GetInt(const std::string& theID);

  //Returns True if there is an integer with given ID
  Standard_EXPORT bool HasIntID(const std::string& theID);

  //Sets a double value of the attribute with given ID
  Standard_EXPORT void SetDouble(const std::string& theID, const double& theValue);

  //Returns a double value of the attribute with given ID
  Standard_EXPORT double GetDouble(const std::string& theID);

  //Returns True if there is a double with given ID
  Standard_EXPORT bool HasDoubleID(const std::string& theID);
 
  //Sets a string value of the attribute with given ID
  Standard_EXPORT void SetString(const std::string& theID, const std::string& theValue);

  //Returns a string  value of the attribute with given ID
  Standard_EXPORT std::string GetString(const std::string& theID);

  //Returns True if there is a string with given ID
  Standard_EXPORT bool HasStringID(const std::string& theID);

  //Sets a boolean value of the attribute with given ID
  Standard_EXPORT void SetBool(const std::string& theID, bool theValue);

  //Returns a boolean value of the attribute with given ID
  Standard_EXPORT bool GetBool(const std::string& theID);

  //Returns True if there is a boolean value with given ID
  Standard_EXPORT bool HasBoolID(const std::string& theID);

  //Clears a content of the attribute
  Standard_EXPORT void Clear();

  //ID is a std::string that uniquely identify the given type of Attributes within the Application.
  Standard_EXPORT virtual const std::string& ID() const;

  //Restores a content of this Attribute from another Attribute
  Standard_EXPORT virtual  void Restore(DF_Attribute* theAttribute);

  //Creates a new empty copy of this Attribute
  Standard_EXPORT virtual DF_Attribute* NewEmpty() const;

  //Pastes a content of this Attribute into another Attribute 
  Standard_EXPORT virtual  void Paste(DF_Attribute* theIntoAttribute);

  
protected:
  std::map<std::string, int>         _ints;
  std::map<std::string, double>      _doubles;
  std::map<std::string, std::string> _strings;
  std::map<std::string, bool>        _bools;
};

#endif