Skip to content

Commit

Permalink
Added KnowledgeRecord method (#116)
Browse files Browse the repository at this point in the history
* Added KnowledgeBase::set methods for direct KR entry and from/to_pystrings

* Added is_array to knowledge record class
  • Loading branch information
ssabatier authored and jredmondson committed Oct 7, 2018
1 parent e1aefe5 commit 60cc92e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions port/python/src/MadaraKnowledge.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -576,6 +576,12 @@ void define_knowledge(void)
&madara::knowledge::KnowledgeRecord::is_any_type),
"returns if the record is Any type")

// checks if record is any type
.def("is_array_type",
static_cast<bool (madara::knowledge::KnowledgeRecord::*)(void) const>(
&madara::knowledge::KnowledgeRecord::is_array_type),
"returns if the record is array type")

// checks if record is a binary file type
.def("is_binary_file_type",
static_cast<bool (madara::knowledge::KnowledgeRecord::*)(void) const>(
Expand Down

0 comments on commit 60cc92e

Please sign in to comment.