NCBI C++ ToolKit
Macros | Functions | Variables
update_seq.cpp File Reference
#include <ncbi_pch.hpp>
#include <corelib/ncbiutil.hpp>
#include <objects/seq/seqport_util.hpp>
#include <objects/seqfeat/RNA_ref.hpp>
#include <objects/seqfeat/Trna_ext.hpp>
#include <objects/seqfeat/Cdregion.hpp>
#include <objects/seqfeat/Code_break.hpp>
#include <objects/seqfeat/Gb_qual.hpp>
#include <objects/seqfeat/SeqFeatXref.hpp>
#include <objects/general/Dbtag.hpp>
#include <objects/pub/Pub_set.hpp>
#include <objects/pub/Pub.hpp>
#include <objects/biblio/Cit_sub.hpp>
#include <objects/general/Date.hpp>
#include <objects/seqalign/Dense_seg.hpp>
#include <objects/seq/Seq_descr.hpp>
#include <objects/general/User_object.hpp>
#include <objects/general/Object_id.hpp>
#include <objects/seq/seq_macros.hpp>
#include <objects/seqset/seqset_macros.hpp>
#include <objects/pub/pub_macros.hpp>
#include <objmgr/util/sequence.hpp>
#include <objmgr/seq_vector.hpp>
#include <objmgr/object_manager.hpp>
#include <objmgr/scope.hpp>
#include <objmgr/bioseq_set_handle.hpp>
#include <objmgr/feat_ci.hpp>
#include <objmgr/bioseq_ci.hpp>
#include <objmgr/seqdesc_ci.hpp>
#include <objmgr/seq_annot_ci.hpp>
#include <objtools/edit/string_constraint.hpp>
#include <gui/widgets/wx/message_box.hpp>
#include <gui/widgets/edit/citsub_updater.hpp>
#include <gui/objutils/cmd_add_seqentry.hpp>
#include <gui/objutils/cmd_change_seq_entry.hpp>
#include <gui/packages/pkg_sequence_edit/update_seq.hpp>
#include <gui/packages/pkg_sequence_edit/sequpd_except.hpp>
#include <gui/packages/pkg_sequence_edit/sequpd.hpp>
#include <objtools/edit/cds_fix.hpp>
+ Include dependency graph for update_seq.cpp:

Go to the source code of this file.

Go to the SVN repository for this file.

Macros

#define FUSE_STRINGFIELDS(Var1, Var2, Field)
 
#define FUSE_BOOLEANFIELDS(Var1, Var2, Field)
 
#define FUSE_LISTFIELDS(Var1, Var2, Type, Field)
 
#define FUSE_VECTORFIELDS(Var1, Var2, Type, Field)
 

Functions

 USING_SCOPE (objects)
 

Variables

static const char * kNewLocalID = "NewSeq"
 

Macro Definition Documentation

◆ FUSE_BOOLEANFIELDS

#define FUSE_BOOLEANFIELDS (   Var1,
  Var2,
  Field 
)
Value:
{{ \
bool fused_value = (Var1).IsSet##Field() ? (Var1).Get##Field() : false; \
bool value = (Var2).IsSet##Field() ? (Var2).Get##Field() : false; \
if (fused_value || value) { \
(Var1).Set##Field(true); \
} else { \
(Var1).Reset##Field(); \
} \
}}
const TYPE & Get(const CNamedParameterList *param)
const GenericPointer< typename T::ValueType > T2 value
Definition: pointer.h:1227

Definition at line 390 of file update_seq.cpp.

◆ FUSE_LISTFIELDS

#define FUSE_LISTFIELDS (   Var1,
  Var2,
  Type,
  Field 
)
Value:
if ((Var2).IsSet##Field() && !(Var2).Get##Field().empty()) { \
C##Type::T##Field& cont = (Var1).Set##Field(); \
copy((Var2).Get##Field().begin(), (Var2).Get##Field().end(), back_inserter(cont)); \
}
#define T(s)
Definition: common.h:230
constexpr bool empty(list< Ts... >) noexcept

Definition at line 401 of file update_seq.cpp.

◆ FUSE_STRINGFIELDS

#define FUSE_STRINGFIELDS (   Var1,
  Var2,
  Field 
)
Value:
{{ \
string orig_value = (Var1).IsSet##Field() ? (Var1).Get##Field() : kEmptyStr; \
string value = (Var2).IsSet##Field() ? (Var2).Get##Field() : kEmptyStr; \
(Var1).Set##Field(orig_value); \
} \
}}
#define kEmptyStr
Definition: ncbistr.hpp:123
static bool EqualNocase(const CTempString s1, SIZE_TYPE pos, SIZE_TYPE n, const char *s2)
Case-insensitive equality of a substring with another string.
Definition: ncbistr.hpp:5347
@ eExistingText_append_semi
bool AddValueToString(string &str, const string &value, EExistingText existing_text)
Add text to an existing string, using the "existing_text" directive to combine new text with existing...

Definition at line 381 of file update_seq.cpp.

◆ FUSE_VECTORFIELDS

#define FUSE_VECTORFIELDS (   Var1,
  Var2,
  Type,
  Field 
)
Value:
{{ \
if ((Var2).IsSet##Field() && !(Var2).Get##Field().empty()) { \
size_t new_size = (Var2).Get##Field().size(); \
new_size += (Var1).IsSet##Field() ? (Var1).Get##Field().size() : 0; \
C##Type::T##Field& cont = (Var1).Set##Field(); \
cont.reserve(new_size); \
copy((Var2).Get##Field().begin(), (Var2).Get##Field().end(), back_inserter(cont)); \
} \
}}

Definition at line 407 of file update_seq.cpp.

Function Documentation

◆ USING_SCOPE()

USING_SCOPE ( objects  )

Variable Documentation

◆ kNewLocalID

const char* kNewLocalID = "NewSeq"
static

Definition at line 486 of file update_seq.cpp.

Referenced by CSequenceUpdater::Update().

Modified on Fri Sep 20 14:58:26 2024 by modify_doxy.py rev. 669887