Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
K
kicad-source-mirror
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
Elphel
kicad-source-mirror
Commits
5f329b47
Commit
5f329b47
authored
Nov 02, 2013
by
Dick Hollenbeck
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
make PROPERTIES::Value() not inline
parent
42ef7f62
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
11 deletions
+21
-11
class_board.cpp
pcbnew/class_board.cpp
+1
-1
io_mgr.cpp
pcbnew/io_mgr.cpp
+15
-0
io_mgr.h
pcbnew/io_mgr.h
+5
-10
No files found.
pcbnew/class_board.cpp
View file @
5f329b47
...
...
@@ -167,7 +167,7 @@ void BOARD::Move( const wxPoint& aMoveVector ) // overload
// PCB_PAD_T,
// PCB_MODULE_TEXT_T,
PCB_MODULE_T
,
PCB_ZONE_AREA_T
,
// if it is visible on screen, it should be selectable
PCB_ZONE_AREA_T
,
EOT
};
...
...
pcbnew/io_mgr.cpp
View file @
5f329b47
...
...
@@ -42,6 +42,21 @@
#define FMT_NOTFOUND _( "Plugin type '%s' is not found." )
// is there a better place for this function?
bool
PROPERTIES
::
Value
(
const
char
*
aName
,
std
::
string
*
aFetchedValue
)
const
{
PROPERTIES
::
const_iterator
it
=
find
(
aName
);
if
(
it
!=
end
()
)
{
if
(
aFetchedValue
)
*
aFetchedValue
=
it
->
second
;
return
true
;
}
return
false
;
}
// Some day plugins might be in separate DLL/DSOs, simply because of numbers of them
// and code size. Until then, use the simplest method:
...
...
pcbnew/io_mgr.h
View file @
5f329b47
...
...
@@ -48,17 +48,12 @@ public:
* Function Value
* fetches a property by aName and returns true if that property was found, else false.
* If not found, aFetchedValue is not touched.
* @param aName is the property or option to look for.
* @param aFetchedValue is where to put the value of the property if it
* exists and aFetchedValue is not NULL.
* @return bool - true if property is found, else false.
*/
bool
Value
(
const
char
*
aName
,
std
::
string
*
aFetchedValue
)
const
{
PROPERTIES
::
const_iterator
it
=
find
(
aName
);
if
(
it
!=
end
()
)
{
*
aFetchedValue
=
it
->
second
;
return
true
;
}
return
false
;
}
bool
Value
(
const
char
*
aName
,
std
::
string
*
aFetchedValue
=
NULL
)
const
;
};
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment