28 #ifndef _MISCEDIT_UTIL_H_
29 #define _MISCEDIT_UTIL_H_
66 virtual vector<CConstRef<CObject> >
GetObjects(objects::CBioseq_Handle bsh);
68 virtual vector<CRef<objects::edit::CApplyObject> >
GetApplyObjects(objects::CBioseq_Handle bsh);
70 virtual vector<CConstRef<CObject> >
GetRelatedObjects(
const objects::edit::CApplyObject&
object);
72 virtual objects::CSeqFeatData::ESubtype
GetFeatureSubtype() {
return objects::CSeqFeatData::eSubtype_bad; } ;
120 virtual vector<string>
IsValid(
const vector<string>& values) { vector<string> rval;
return rval; };
132 virtual vector<CConstRef<CObject> >
GetObjects(objects::CBioseq_Handle bsh);
134 virtual vector<CRef<objects::edit::CApplyObject> >
GetApplyObjects(objects::CBioseq_Handle bsh);
141 virtual vector<string>
IsValid(
const vector<string>& values);
142 virtual objects::CSeqFeatData::ESubtype
GetFeatureSubtype() {
return objects::CSeqFeatData::eSubtype_bad; };
147 virtual vector<CConstRef<CObject> >
GetRelatedObjects(
const objects::edit::CApplyObject&
object);
158 virtual vector<CConstRef<CObject> >
GetObjects(objects::CBioseq_Handle bsh);
160 virtual vector<CRef<objects::edit::CApplyObject> >
GetApplyObjects(objects::CBioseq_Handle bsh);
162 virtual vector<CConstRef<CObject> >
GetRelatedObjects(
const objects::edit::CApplyObject&
object);
172 virtual objects::CSeqFeatData::ESubtype
GetFeatureSubtype() {
return objects::CSeqFeatData::eSubtype_bad; }
191 virtual vector<CConstRef<CObject> >
GetObjects(objects::CBioseq_Handle bsh);
193 virtual vector<CRef<objects::edit::CApplyObject> >
GetApplyObjects(objects::CBioseq_Handle bsh);
195 virtual vector<CConstRef<CObject> >
GetRelatedObjects(
const objects::edit::CApplyObject&
object);
205 virtual objects::CSeqFeatData::ESubtype
GetFeatureSubtype() {
return objects::CSeqFeatData::eSubtype_bad; }
250 virtual vector<CConstRef<CObject> >
GetObjects(objects::CBioseq_Handle bsh);
252 virtual vector<CRef<objects::edit::CApplyObject> >
GetApplyObjects(objects::CBioseq_Handle bsh);
254 virtual vector<CConstRef<CObject> >
GetRelatedObjects(
const objects::edit::CApplyObject&
object);
264 virtual objects::CSeqFeatData::ESubtype
GetFeatureSubtype() {
return objects::CSeqFeatData::eSubtype_bad; }
275 virtual vector<CConstRef<CObject> >
GetObjects(objects::CBioseq_Handle bsh);
277 virtual vector<CRef<objects::edit::CApplyObject> >
GetApplyObjects(objects::CBioseq_Handle bsh);
279 virtual vector<CConstRef<CObject> >
GetRelatedObjects(
const objects::edit::CApplyObject&
object);
289 virtual objects::CSeqFeatData::ESubtype
GetFeatureSubtype() {
return objects::CSeqFeatData::eSubtype_bad; }
333 virtual vector<CConstRef<CObject> >
GetObjects(objects::CBioseq_Handle bsh);
335 virtual vector<CRef<objects::edit::CApplyObject> >
GetApplyObjects(objects::CBioseq_Handle bsh);
337 virtual vector<CConstRef<CObject> >
GetRelatedObjects(
const objects::edit::CApplyObject&
object);
343 virtual vector<string>
GetVals(
const CObject&
object) { vector<string> vals;
return vals; }
347 virtual objects::CSeqFeatData::ESubtype
GetFeatureSubtype() {
return objects::CSeqFeatData::eSubtype_bad; }
358 vector<CConstRef<CObject> >
GetObjects(objects::CBioseq_Handle bsh);
362 vector<CRef<objects::edit::CApplyObject> >
GetApplyObjects(objects::CBioseq_Handle bsh);
384 vector<string>
IsValid(
const vector<string>& values);
413 objects::CScope& scope);
User-defined methods of the data storage class.
virtual string GetVal(const CObject &object)
virtual vector< string > GetVals(const CObject &object)
virtual bool SetVal(CObject &object, const string &val, objects::edit::EExistingText existing_text)
virtual bool IsEmpty(const CObject &object) const
virtual void ClearVal(CObject &object)
static CRef< ncbi::CFieldHandler > Create(const string &field_name)
virtual string GetVal(const CObject &object)
virtual bool IsEmpty(const CObject &object) const
bool x_IsNCBIFILEId(const objects::CSeq_id &seq_id)
virtual vector< CConstRef< CObject > > GetObjects(objects::CBioseq_Handle bsh)
virtual objects::CSeqFeatData::ESubtype GetFeatureSubtype()
virtual vector< string > GetVals(const CObject &object)
virtual vector< CConstRef< CObject > > GetRelatedObjects(const CObject &object, CRef< objects::CScope > scope)
virtual bool AllowMultipleValues()
virtual objects::CSeqdesc::E_Choice GetDescriptorSubtype()
virtual vector< CConstRef< CObject > > GetObjects(objects::CSeq_entry_Handle seh, const string &constraint_field, CRef< objects::edit::CStringConstraint > string_constraint)
virtual bool IsEmpty(const CObject &object) const
virtual vector< CConstRef< CObject > > GetRelatedObjects(const objects::edit::CApplyObject &object)
virtual void ClearVal(CObject &object)
virtual bool SetVal(CObject &object, const string &val, objects::edit::EExistingText existing_text)
virtual ~CFlatFileField()
virtual vector< CRef< objects::edit::CApplyObject > > GetApplyObjects(objects::CBioseq_Handle bsh)
virtual void SetConstraint(const string &field, CConstRef< objects::edit::CStringConstraint > string_constraint)
virtual string GetVal(const CObject &object)
virtual bool IsEmpty(const CObject &object) const
virtual void SetConstraint(const string &field, CConstRef< objects::edit::CStringConstraint > string_constraint)
virtual string GetVal(const CObject &object)
virtual bool AllowMultipleValues()
virtual string IsValid(const string &val)
virtual void ClearVal(CObject &object)
CRef< objects::edit::CStringConstraint > m_StringConstraint
virtual bool SetVal(CObject &object, const string &val, objects::edit::EExistingText existing_text)
virtual vector< string > IsValid(const vector< string > &values)
virtual vector< string > GetVals(const CObject &object)
static EGeneralIDPart GetGeneralIDPart_FromName(const string &name)
virtual string GetVal(const CObject &object)
CGeneralIDField(EGeneralIDPart part, const string &db=kEmptyStr)
EGeneralIDPart m_GeneralIDPart
static const string & GetName_GeneralIDPart(EGeneralIDPart stype_part)
virtual bool SetVal(CObject &object, const string &val, objects::edit::EExistingText existing_text)
static bool IsGenomeProject(const objects::CUser_object &user)
virtual vector< CRef< objects::edit::CApplyObject > > GetApplyObjects(objects::CBioseq_Handle bsh)
static bool IsGenomeProjectID(const objects::CUser_field &field)
virtual bool IsEmpty(const CObject &object) const
virtual string GetVal(const CObject &object)
virtual objects::CSeqdesc::E_Choice GetDescriptorSubtype()
virtual string IsValid(const string &val)
virtual vector< CConstRef< CObject > > GetObjects(objects::CBioseq_Handle bsh)
virtual objects::CSeqFeatData::ESubtype GetFeatureSubtype()
virtual void ClearVal(CObject &object)
virtual bool AllowMultipleValues()
virtual void SetConstraint(const string &field, CConstRef< objects::edit::CStringConstraint > string_constraint)
virtual vector< string > GetVals(const CObject &object)
virtual vector< CConstRef< CObject > > GetRelatedObjects(const CObject &object, CRef< objects::CScope > scope)
virtual vector< CConstRef< CObject > > GetRelatedObjects(const objects::edit::CApplyObject &object)
virtual vector< CConstRef< CObject > > GetObjects(objects::CSeq_entry_Handle seh, const string &constraint_field, CRef< objects::edit::CStringConstraint > string_constraint)
virtual bool SetVal(CObject &object, const string &val, objects::edit::EExistingText existing_text)
virtual bool AllowMultipleValues()
virtual void SetConstraint(const string &field, CConstRef< objects::edit::CStringConstraint > string_constraint)
virtual void ClearVal(CObject &object)
virtual objects::CSeqdesc::E_Choice GetDescriptorSubtype()
virtual vector< CConstRef< CObject > > GetRelatedObjects(const objects::edit::CApplyObject &object)
virtual string GetVal(const CObject &object)
virtual vector< CConstRef< CObject > > GetObjects(objects::CBioseq_Handle bsh)
virtual vector< CConstRef< CObject > > GetObjects(objects::CSeq_entry_Handle seh, const string &constraint_field, CRef< objects::edit::CStringConstraint > string_constraint)
virtual bool IsEmpty(const CObject &object) const
virtual vector< string > GetVals(const CObject &object)
virtual vector< CRef< objects::edit::CApplyObject > > GetApplyObjects(objects::CBioseq_Handle bsh)
virtual vector< CConstRef< CObject > > GetRelatedObjects(const CObject &object, CRef< objects::CScope > scope)
virtual objects::CSeqFeatData::ESubtype GetFeatureSubtype()
CRef< CCmdComposite > SetValCmd(CConstRef< CObject > object, const string &val, objects::edit::EExistingText existing_text, objects::CScope &scope, bool update_mrna_product=false)
bool AllowMultipleValues()
CRef< ncbi::CFieldHandler > m_FieldHandler
CRef< CCmdComposite > SwapValCmd(CRef< objects::edit::CApplyObject > src_object, CRef< objects::edit::CApplyObject > dst_object, CMiscSeqTableColumn &other, objects::edit::EExistingText existing_text, bool update_mrna_product)
CRef< CCmdComposite > ConvertValCmd(CRef< objects::edit::CApplyObject > src_object, CRef< objects::edit::CApplyObject > dst_object, CMiscSeqTableColumn &other, objects::edit::EExistingText existing_text, objects::ECapChange cap_change, const bool leave_original, const string &field_name, const bool update_mrna_product)
CRef< CSrcTableColumnBase > m_Src
CRef< CObject > GetNewObject(CConstRef< CObject > obj)
vector< CRef< objects::edit::CApplyObject > > GetApplyObjects(objects::CBioseq_Handle bsh)
bool IsProductField(void)
vector< CConstRef< CObject > > GetRelatedObjects(const objects::edit::CApplyObject &object)
CRef< CCmdComposite > x_GetMrnaUpdate(objects::edit::CApplyObject &src_object, objects::edit::CApplyObject &dst_object, CMiscSeqTableColumn &other, bool &changed_src)
void AddApplyObjectValue(const objects::edit::CApplyObject &object, const string &field, set< string > &values)
void ClearVal(CObject &object)
CRef< CCmdComposite > CopyValCmd(CRef< objects::edit::CApplyObject > src_object, CRef< objects::edit::CApplyObject > dst_object, CMiscSeqTableColumn &other, objects::edit::EExistingText existing_text, bool update_mrna_product)
vector< CConstRef< CObject > > GetRelatedObjects(const CObject &object, CRef< objects::CScope > scope)
static bool s_IsSequenceIDField(const string &field)
CRef< CCmdComposite > SwapValCmd(objects::edit::CApplyObject &object, CMiscSeqTableColumn &other, objects::edit::EExistingText existing_text, bool update_mrna_product)
CRef< CCmdComposite > ParseValCmd(CRef< objects::edit::CApplyObject > src_object, CRef< objects::edit::CApplyObject > dst_object, CMiscSeqTableColumn &other, const objects::edit::CParseTextOptions &parse_options, objects::edit::EExistingText existing_text, bool update_mrna_product)
int CountConflicts(set< CConstRef< CObject > > objs, const string &val)
bool IsEmpty(const CObject &object) const
vector< CRef< objects::edit::CApplyObject > > GetApplyObjects(objects::CSeq_entry_Handle seh, const string &constraint_field, CRef< objects::edit::CStringConstraint > string_constraint)
objects::CSeqdesc::E_Choice GetDescriptorSubtype()
CRef< CCmdComposite > ConvertValCmd(objects::edit::CApplyObject &object, CMiscSeqTableColumn &other, objects::edit::EExistingText existing_text, objects::ECapChange cap_change, const bool leave_original, const string &field_name, const bool update_mrna_product)
void SetConstraint(string field, CRef< objects::edit::CStringConstraint > string_constraint)
CRef< CCmdComposite > GetReplacementCommand(CConstRef< CObject >, CRef< CObject > newobj, objects::CScope &scope, const string &cmd_name)
CRef< CCmdComposite > CopyValCmd(objects::edit::CApplyObject &object, CMiscSeqTableColumn &other, objects::edit::EExistingText existing_text, bool update_mrna_product)
vector< string > GetVals(const CObject &object)
objects::CSeqFeatData::ESubtype GetFeatureSubtype()
CRef< CCmdComposite > ParseValCmd(objects::edit::CApplyObject &object, CMiscSeqTableColumn &other, const objects::edit::CParseTextOptions &parse_options, objects::edit::EExistingText existing_text, bool update_mrna_product)
CMiscSeqTableColumn(const string &name)
vector< CConstRef< CObject > > GetObjects(objects::CBioseq_Handle bsh)
CRef< CCmdComposite > x_GetMrnaUpdate(objects::edit::CApplyObject &object, CMiscSeqTableColumn &other)
CRef< CFeatureSeqTableColumnBase > m_Feature
vector< CRef< objects::edit::CApplyObject > > GetRelatedApplyObjects(objects::edit::CApplyObject &object)
string IsValid(const string &val)
vector< CConstRef< CObject > > GetObjects(objects::CSeq_entry_Handle seh, const string &constraint_field, CRef< objects::edit::CStringConstraint > string_constraint)
string GetVal(const CObject &object)
CRef< CCmdComposite > ClearValCmd(CConstRef< CObject > object, bool update_mrna_product, objects::CScope &scope)
bool SetVal(CObject &object, const string &val, objects::edit::EExistingText existing_text)
void GetApplyObjectsValues(objects::CSeq_entry_Handle seh, const string &constraint_field, set< string > &values)
void SetScope(CRef< objects::CScope > scope)
virtual void ClearVal(CObject &object)
virtual objects::CSeqFeatData::ESubtype GetFeatureSubtype()
virtual objects::CSeqdesc::E_Choice GetDescriptorSubtype()
virtual vector< CConstRef< CObject > > GetRelatedObjects(const CObject &object, CRef< objects::CScope > scope)
virtual void SetConstraint(const string &field_name, CConstRef< objects::edit::CStringConstraint > string_constraint)
virtual bool SetVal(CObject &object, const string &val, objects::edit::EExistingText existing_text)
virtual bool AllowMultipleValues()
virtual vector< string > GetVals(const CObject &object)
virtual vector< CConstRef< CObject > > GetObjects(objects::CSeq_entry_Handle seh, const string &constraint_field, CRef< objects::edit::CStringConstraint > string_constraint)
virtual vector< CConstRef< CObject > > GetRelatedObjects(const objects::edit::CApplyObject &object)
virtual bool IsEmpty(const CObject &object) const
virtual vector< CRef< objects::edit::CApplyObject > > GetApplyObjects(objects::CBioseq_Handle bsh)
virtual string GetVal(const CObject &object)
virtual vector< CConstRef< CObject > > GetObjects(objects::CBioseq_Handle bsh)
virtual vector< string > GetVals(const CObject &object)
virtual void ClearVal(CObject &object)
virtual bool SetVal(CObject &object, const string &val, objects::edit::EExistingText existing_text)
virtual bool SetVal(objects::CUser_field &field, const string &newValue, objects::edit::EExistingText existing_text)
unsigned int m_NrOfSetting
virtual void ClearVal(CObject &object)
virtual bool SetVal(CObject &object, const string &val, objects::edit::EExistingText existing_text)
virtual vector< string > GetVals(const CObject &object)
virtual bool SetVal(objects::CUser_field &field, const string &newValue, objects::edit::EExistingText existing_text)
objects::CUser_object::TData m_FieldValuePairs
void x_InsertFieldAtCorrectPosition(objects::CUser_object &user, CRef< objects::CUser_field > field)
virtual bool SetVal(objects::CUser_field &field, const string &newValue, objects::edit::EExistingText existing_text)
virtual vector< CConstRef< CObject > > GetRelatedObjects(const CObject &object, CRef< objects::CScope > scope)
virtual vector< string > GetVals(const CObject &object)
CStructCommFieldValuePair(const string &fieldname)
virtual void ClearVal(CObject &object)
virtual string GetVal(const CObject &object)
virtual objects::CSeqdesc::E_Choice GetDescriptorSubtype()
virtual bool IsEmpty(const CObject &object) const
virtual vector< CConstRef< CObject > > GetObjects(objects::CSeq_entry_Handle seh, const string &constraint_field, CRef< objects::edit::CStringConstraint > string_constraint)
virtual bool SetVal(CObject &object, const string &val, objects::edit::EExistingText existing_text)
virtual vector< CRef< objects::edit::CApplyObject > > GetApplyObjects(objects::CBioseq_Handle bsh)
virtual vector< CConstRef< CObject > > GetRelatedObjects(const objects::edit::CApplyObject &object)
virtual vector< CConstRef< CObject > > GetObjects(objects::CBioseq_Handle bsh)
virtual void SetConstraint(const string &field_name, CConstRef< objects::edit::CStringConstraint > string_constraint)
const objects::CUser_object * x_GetUser_Object(const CObject &object) const
virtual bool AllowMultipleValues()
virtual objects::CSeqFeatData::ESubtype GetFeatureSubtype()
virtual void SetConstraint(const string &field_name, CConstRef< objects::edit::CStringConstraint > string_constraint)
virtual vector< CConstRef< CObject > > GetRelatedObjects(const CObject &object, CRef< objects::CScope > scope)
virtual vector< CRef< objects::edit::CApplyObject > > GetApplyObjects(objects::CBioseq_Handle bsh)
virtual vector< CConstRef< CObject > > GetRelatedObjects(const objects::edit::CApplyObject &object)
virtual vector< CConstRef< CObject > > GetObjects(objects::CSeq_entry_Handle seh, const string &constraint_field, CRef< objects::edit::CStringConstraint > string_constraint)
virtual objects::CSeqdesc::E_Choice GetDescriptorSubtype()
virtual objects::CSeqFeatData::ESubtype GetFeatureSubtype()
objects::CSeqdesc::E_Choice m_Subtype
objects::CSeqdesc::E_Choice GetSubtype()
void SetSubtype(objects::CSeqdesc::E_Choice subtype)
virtual bool AllowMultipleValues()
virtual vector< CConstRef< CObject > > GetObjects(objects::CBioseq_Handle bsh)
IWorkbench is the central interface in the application framework.
Include a standard set of the NCBI C++ Toolkit most basic headers.
vector< SConstScopedObject > TConstScopedObjects
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
#define NCBI_GUIPKG_SEQUENCE_EDIT_EXPORT
<!DOCTYPE HTML >< html > n< header > n< title > PubSeq Gateway Help Page</title > n< style > n table
bool DoesObjectMatchFieldConstraint(const CObject &object, const string &field_name, CRef< objects::edit::CStringConstraint > string_constraint, CRef< objects::CScope > scope)
int CountColumnConflicts(CRef< CMiscSeqTableColumn > col, vector< CConstRef< CObject > > objs, const string &val)
string MakeTableMetaInfoString(objects::edit::EExistingText rule, bool erase_blanks)
CRef< CCmdComposite > GetCommandFromApplyObject(objects::edit::CApplyObject &obj)
bool FocusedOnNucleotides(TConstScopedObjects &objects, const objects::CSeq_entry_Handle &tse)
vector< CRef< CMiscSeqTableColumn > > TMiscSeqTableColumnList
CRef< CCmdComposite > ConvertValCmd(CConstRef< CObject > object, CRef< CMiscSeqTableColumn > col1, CRef< CMiscSeqTableColumn > col2, objects::edit::EExistingText existing_text, objects::CScope &scope)
bool DoesApplyObjectMatchFieldConstraint(const objects::edit::CApplyObject &object, const string &field_name, CRef< objects::edit::CStringConstraint > string_constraint)
CRef< CCmdComposite > GetPropagateDBLinkCmd(objects::CSeq_entry_Handle entry)
int GetNumberOfViewedBioseqs(TConstScopedObjects &objects)
void GetViewObjects(IWorkbench *workbench, TConstScopedObjects &objects)
CRef< objects::CSeq_table > GetMiscTableFromSeqEntry(const vector< string > &fields, objects::CSeq_entry_Handle entry)
CRef< objects::CUser_field > MakeTableMetaInfoField(objects::edit::EExistingText rule, bool erase_blanks)
void AddMiscColumnsToTable(CRef< objects::CSeq_table > table, const vector< string > &fields, objects::CSeq_entry_Handle entry)
bool FocusedOnAll(TConstScopedObjects &objects, const objects::CSeq_entry_Handle &tse)