code format

This commit is contained in:
2022-12-14 14:13:33 +03:00
parent 37480c9d1f
commit 2622737a52
39 changed files with 1295 additions and 1265 deletions

View File

@@ -1,28 +1,28 @@
/*
CD Utils - Control-Debug utilites
CD Utils - Control-Debug utilites
Ivan Pelipenko peri4ko@yandex.ru, Andrey Bychkov work.a.b@yandex.ru
Ivan Pelipenko peri4ko@yandex.ru, Andrey Bychkov work.a.b@yandex.ru
This program 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 3 of the License, or
(at your option) any later version.
This program 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 3 of the License, or
(at your option) any later version.
This program 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.
This program 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 program. If not, see <http://www.gnu.org/licenses/>.
You should have received a copy of the GNU Lesser General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef CDUTILS_INTERFACE_H
#define CDUTILS_INTERFACE_H
#include "cd_core_export.h"
#include "cdutils_types.h"
#include "piobject.h"
#include "cd_core_export.h"
namespace CDUtils {
@@ -30,19 +30,19 @@ namespace CDUtils {
class CDCore;
class CD_CORE_EXPORT Interface: public PIObject
{
class CD_CORE_EXPORT Interface: public PIObject {
PIOBJECT(CDUtils::Interface);
public:
Interface(CDType::cdT type_);
bool test(int v);
CDType & operator [](int v);
const CDType operator [](int v) const;
CDType & operator [](const PIString & name_);
const CDType operator [](const PIString & name_) const;
CDType & operator [](const PIDeque<int> & path_);
const CDType operator [](const PIDeque<int> & path_) const;
CDType & operator[](int v);
const CDType operator[](int v) const;
CDType & operator[](const PIString & name_);
const CDType operator[](const PIString & name_) const;
CDType & operator[](const PIDeque<int> & path_);
const CDType operator[](const PIDeque<int> & path_) const;
CDSection & section(int v);
const CDSection section(int v) const;
CDSection & section(const PIDeque<int> & path);
@@ -50,9 +50,9 @@ public:
const CDSection & root() const;
int count(bool recursive = true) const;
const PIString file() const {return file_;}
int fileSize() const {return file_size;}
CDType::cdT cdType() const {return type;}
const PIString file() const { return file_; }
int fileSize() const { return file_size; }
CDType::cdT cdType() const { return type; }
bool exists(PIDeque<int> path) const;
void setFileName(const PIString & _file);
@@ -86,11 +86,10 @@ protected:
CDType::cdT type;
PIString file_;
int file_size;
};
}
} // namespace CDUtils
#endif // CDUTILS_INTERFACE_H